Add print buttons in direct access on sale.order and account.invoice

This commit is contained in:
Alexis de Lattre
2021-08-26 12:44:50 +02:00
parent 62a84469c8
commit 3066c0545d
4 changed files with 10 additions and 6 deletions

View File

@@ -18,6 +18,12 @@
<field name="invoice_incoterm_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
<button name="action_register_payment" position="before">
<button name="%(account.account_invoices)d" type="action" string="Print" attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}"/>
</button>
<button name="preview_invoice" position="attributes">
<attribute name="attrs">{'invisible': 1}</attribute>
</button>
<!-- move sent field and make it visible -->
<field name="is_move_sent" position="replace"/>
<field name="invoice_origin" position="after">