stock_usability : add sum on some fields in picking form view

This commit is contained in:
Alexis de Lattre
2022-07-15 10:44:51 +02:00
parent 5fbe6d340a
commit a800657f54
2 changed files with 9 additions and 0 deletions

View File

@@ -95,6 +95,12 @@
<field name="product_id" position="after">
<field name="product_barcode" optional="hide"/>
</field>
<field name="qty_done" position="attributes">
<attribute name="sum">1</attribute>
</field>
<field name="product_uom_qty" position="attributes">
<attribute name="sum">1</attribute>
</field>
</field>
</record>

View File

@@ -28,6 +28,9 @@
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']" position="attributes">
<attribute name="sum">1</attribute>
</xpath>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='quantity_done']" position="attributes">
<attribute name="sum">1</attribute>
</xpath>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_id']" position="replace"/>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_dest_id']" position="replace"/>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='name']" position="replace"/>