Add sum=1 on several qty fields

This commit is contained in:
Alexis de Lattre
2017-11-30 12:06:02 +01:00
parent e0f627c48b
commit ecf4634601
2 changed files with 24 additions and 0 deletions

View File

@@ -60,6 +60,9 @@ module -->
<field name="state" invisible="not context.get('show_invoice_fields')"/>
<field name="invoice_type" invisible="1"/>
</field>
<field name="quantity" position="attributes">
<attribute name="sum">1</attribute>
</field>
<xpath expr="/tree" position="attributes">
<attribute name="decoration-info">state == 'draft'</attribute>
<attribute name="decoration-muted">state == 'cancel'</attribute>