Display and order by planned date when searching incoming moves from supplier shipment
Closes #12060
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user