mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
24 lines
864 B
XML
24 lines
864 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<record model="ir.actions.server" id="action_invoice_change">
|
|
<field name="name">Change Invoice</field>
|
|
<field name="model_id" ref="account.model_account_move"/>
|
|
<field name="binding_model_id" ref="account.model_account_move" />
|
|
<field name="binding_view_types">list</field>
|
|
<field name="state">code</field>
|
|
<field name="groups_id" eval="[(4,ref('account.group_account_manager'))]"/>
|
|
<field name="code">
|
|
if records:
|
|
action = env['ir.actions.act_window'].for_xml_id('account_invoice_change', 'action_view_account_invoice_change')
|
|
action['context'] = {
|
|
'active_model': model._name,
|
|
'active_ids': records.ids,
|
|
}
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|