sale_stock_usability: add methods for report

move form view in picking: add date field
account_usability: amount in tax lines readonly on customer invoices
This commit is contained in:
Alexis de Lattre
2020-03-06 18:33:49 +01:00
parent aa9ab68ca3
commit 38f1eacf8f
3 changed files with 41 additions and 2 deletions

View File

@@ -41,6 +41,10 @@
<xpath expr="//field[@name='tax_line_ids']/tree/field[@name='amount']" position="before">
<field name="base" readonly="1"/>
</xpath>
<!-- Don't allow to force tax amount on CUSTOMER invoices -->
<xpath expr="//field[@name='tax_line_ids']/tree/field[@name='amount']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
<!-- Warning: there are 2 invoice_print buttons in the native view... probably a bug -->
<xpath expr="//button[@name='invoice_print']" position="attributes">
<attribute name="attrs">{'invisible': [('state', 'not in', ('open', 'paid'))]}</attribute>