优化库存排序

This commit is contained in:
guanhuan
2025-04-17 13:44:25 +08:00
parent 06e9d5a538
commit 9cfc8418ec
7 changed files with 62 additions and 12 deletions

View File

@@ -455,7 +455,7 @@
<field name="inherit_id" ref="mrp.mrp_production_workorder_tree_editable_view"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="default_order">sequence</attribute>
<attribute name="default_order">create_date desc</attribute>
<attribute name="decoration-warning">delivery_warning == 'warning'</attribute>
<attribute name="decoration-danger">delivery_warning == 'overdue'</attribute>
</xpath>

View File

@@ -50,6 +50,9 @@
<xpath expr="//field[@name='origin']" position="after">
<field name="retrospect_ref"/>
</xpath>
<xpath expr="//tree" position="attributes">
<attribute name="default_order">create_date desc</attribute>
</xpath>
</field>
</record>