Display and order by planned date when searching incoming moves from supplier shipment

Closes #12060
This commit is contained in:
Sergio Hervas
2023-02-13 14:30:29 +01:00
parent 9f18ee3aea
commit 472b4b0aa7
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -215,6 +215,10 @@ class ShipmentIn(ShipmentMixin, Workflow, ModelSQL, ModelView):
[Eval('warehouse_input', -1)], 'parent'),
('to_location', '=', Eval('warehouse_input'))),
],
search_order=[
('planned_date', 'ASC NULLS LAST'),
('id', 'ASC')
],
domain=[
If(Eval('state') == 'draft',
('from_location', '=', Eval('supplier_location')),
@@ -3,6 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="shipment" expand="2"/>
<field name="planned_date" optional="0"/>
<field name="from_location" expand="1"/>
<field name="product" expand="2"/>
<field name="quantity" symbol="uom"/>