summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2020-02-17 11:00:48 +0000
committerSimon Lejeune <sle@openerp.com>2020-02-17 17:11:11 +0000
commit858c2e4da0a49235309103f2714fbf296aa52065 (patch)
treef8c327e5f1fd9c2e5d0bf615e31d4f7ae459d9ce /addons/web/static/src/js/views/basic/basic_controller.js
parent6d90d20ee9249529ec4505f0819b59f86ab983f7 (diff)
[FIX] stock, mrp: move with zero as initial demand
Set the following product configuration: Storable finished product with a flexible BOM made of storable components in manufacture + MTO: Component choice 1 Quantity = 0 with BOM made of component 1, quantity 1 with purchase mto route Component choice 2 Quantity = 0 with BOM made of component 2, quantity 1 with purchase mto route Create a MO for finished product, set the "to consume" quantity of "Component choice 1" to 1, and try to mark it as to do. The following issue is raised: The quantity to produce must be positive! This is because a procurement with 0 quantity will be solved in a MO producing 0 quantity. We fix this issue by ignoring procurements with 0 quantities. Also, this MO without initial demand is not considered assigned. We fix this issue by considering 0 move as assigned. task-2159374 closes odoo/odoo#45552 X-original-commit: dffb3a1f2762d6e1517eb9b7d225521f99d874d5 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions