mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_default_draft_move: Show button cancel in invoice for group account.group_account_invoice instead of group_no_one
This commit is contained in:
@@ -48,7 +48,7 @@ need to make a refund).
|
||||
|
||||
""",
|
||||
'website': 'http://www.camptocamp.com',
|
||||
'data' : [],
|
||||
'data' : ['invoice_view.xml'],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
||||
|
||||
31
account_default_draft_move/invoice_view.xml
Normal file
31
account_default_draft_move/invoice_view.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="invoice_form_customer_group_invoice" model="ir.ui.view">
|
||||
<field name="name">Show Cancel invoice button</field>
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_form" />
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='invoice_cancel']" position="attributes">
|
||||
<attribute name="groups" eval="account.group_account_invoice"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="invoice_form_supplier_group_invoice" model="ir.ui.view">
|
||||
<field name="name">Show Cancel invoice button</field>
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_supplier_form" />
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='invoice_cancel' and @states='sale,open']" position="attributes">
|
||||
<attribute name="groups" eval="account.group_account_invoice"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user