-
- Downloads
[IMP] stock: propagate orderpoint through moves
Orderpoint reference are only set on the first object that is created from the procurement request. However sometimes we would like to access it from further object or define another behavior if we come from an orderpoint. Now that the we propagate the orderpoint_id, it's important to ignore po line with an orderpoint AND a chained stock move, else the quantities will be counted twice by the orderpoint in a 2 steps receipt scenario Task: 1849912
Showing
- addons/purchase_requisition_stock/models/stock.py 2 additions, 2 deletionsaddons/purchase_requisition_stock/models/stock.py
- addons/purchase_stock/models/purchase.py 6 additions, 2 deletionsaddons/purchase_stock/models/purchase.py
- addons/purchase_stock/models/stock.py 1 addition, 1 deletionaddons/purchase_stock/models/stock.py
- addons/purchase_stock/models/stock_rule.py 11 additions, 2 deletionsaddons/purchase_stock/models/stock_rule.py
- addons/purchase_stock/tests/test_purchase_lead_time.py 1 addition, 1 deletionaddons/purchase_stock/tests/test_purchase_lead_time.py
- addons/stock/models/stock_move.py 2 additions, 0 deletionsaddons/stock/models/stock_move.py
- addons/stock/models/stock_rule.py 1 addition, 0 deletionsaddons/stock/models/stock_rule.py
Loading
Please register or sign in to comment