stock_usability: improve product.template tree view

This commit is contained in:
Alexis de Lattre
2024-01-18 13:50:10 +00:00
parent a517fe67a8
commit 0656d319ce

View File

@@ -15,7 +15,19 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="responsible_id" position="attributes"> <field name="responsible_id" position="attributes">
<attribute name="optional">hide</attribute> <attribute name="optional">hide</attribute>
</field> </field>
<field name="virtual_available" position="before">
<field name="incoming_qty" optional="hide" sum="1"/>
<field name="outgoing_qty" optional="hide" sum="1"/>
<!-- we would like to also have free_qty, as on product.product, but this field doesn't exist on product.template -->
</field>
<!-- we have sum=1 on product.product qty fields, but not on product.template...so I add it on product.template -->
<field name="virtual_available" position="attributes">
<attribute name="sum">1</attribute>
</field>
<field name="qty_available" position="attributes">
<attribute name="sum">1</attribute>
</field>
</field> </field>
</record> </record>