diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-07-29 14:19:26 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2020-08-18 07:48:27 +0000 |
| commit | e40553723b893bcd2244e9b9fcc5c1a7e1bf27d3 (patch) | |
| tree | 24eae5579cb91e9554226c7f56dd2afd3830e1c4 /addons/stock_picking_batch | |
| parent | bb9ef004524e21c642abdff16aa6caa9abbb37ba (diff) | |
[IMP] stock,mrp,purchase: refactor priority
- MO/picking/PO/stock.move have now the "same" `priority` fields
(Boolean logic: Normal or Urgent).
These models are now sort by priority first. Note that the priority field of
stock move is a technical one.
- For MO and picking, the set of `priority` field change priority of
the related stock move. The prioriry field on stock move is
used by the scheduler for reservation ('Urgent' before 'Normal')
- The Stock Replenishment Report also take in account the priority
to be consistent with the reservation.
task-2246665
Diffstat (limited to 'addons/stock_picking_batch')
| -rw-r--r-- | addons/stock_picking_batch/data/stock_picking_batch_demo.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/stock_picking_batch/data/stock_picking_batch_demo.xml b/addons/stock_picking_batch/data/stock_picking_batch_demo.xml index fe2d8bfe191..f465feb5a00 100644 --- a/addons/stock_picking_batch/data/stock_picking_batch_demo.xml +++ b/addons/stock_picking_batch/data/stock_picking_batch_demo.xml @@ -53,7 +53,7 @@ <!-- Add picking --> <record id="Picking_A" model="stock.picking"> <field name="move_type">one</field> - <field name="priority">2</field> + <field name="priority">1</field> <field name="user_id" eval="False"/> <field name="picking_type_id" ref="stock.picking_type_internal"/> <field name="batch_id" ref="stock_picking_batch_freeze_1"/> @@ -63,7 +63,7 @@ </record> <record id="Picking_B" model="stock.picking"> <field name="move_type">one</field> - <field name="priority">1</field> + <field name="priority">0</field> <field name="user_id" eval="False"/> <field name="picking_type_id" ref="stock.picking_type_internal"/> <field name="batch_id" ref="stock_picking_batch_freeze_1"/> @@ -73,7 +73,7 @@ </record> <record id="Picking_C" model="stock.picking"> <field name="move_type">one</field> - <field name="priority">1</field> + <field name="priority">0</field> <field name="user_id" eval="False"/> <field name="picking_type_id" ref="stock.picking_type_internal"/> <field name="batch_id" ref="stock_picking_batch_dry_1"/> |
