diff --git a/__manifest__.py b/__manifest__.py index 2b4506204266faa7aa4427ebc5d5c1bad802ad95..e28680757b318d50e8edaeb9cd092e06b3e5e666 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,4 +1,4 @@ -# © 2019 Le Filament (<http://www.le-filament.com>) +# © 2021 Le Filament (<http://www.le-filament.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { @@ -6,7 +6,7 @@ 'summary': "Generic Account Invoice views update by Le Filament", - 'version': '12.0.1.0.0', + 'version': '13.0.1.0.0', 'license': 'AGPL-3', 'author': 'LE FILAMENT', 'category': 'Account', @@ -18,7 +18,7 @@ ], 'website': 'https://le-filament.com', 'data': [ - 'views/lefilament_account_view.xml', + 'views/lefilament_move_view.xml', ], 'qweb': [ ], diff --git a/views/lefilament_account_view.xml b/views/lefilament_move_view.xml similarity index 66% rename from views/lefilament_account_view.xml rename to views/lefilament_move_view.xml index b85aae6870a36a86a7d778aedc11065a7bf17c67..7992e7d4694670dd12257bc43e25c97d77137cb4 100644 --- a/views/lefilament_account_view.xml +++ b/views/lefilament_move_view.xml @@ -2,11 +2,11 @@ <odoo> <!-- Account Invoice Form - Trigger validation --> <record model="ir.ui.view" id="lf_invoice_form"> - <field name="inherit_id" ref="account.invoice_form"/> + <field name="inherit_id" ref="account.view_move_form"/> <field name="name">account.invoice.form</field> - <field name="model">account.invoice</field> + <field name="model">account.move</field> <field name="arch" type="xml"> - <xpath expr="//button[@name='action_invoice_open']" position="attributes"> + <xpath expr="//button[@name='action_post']" position="attributes"> <attribute name="confirm">Do you want to confirm this invoice ?</attribute> </xpath> </field>