summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_view.js
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2019-04-11 08:32:36 +0000
committerArnold Moyaux <arm@odoo.com>2019-04-23 09:20:06 +0000
commit45e80f56b9e29bf96fbd0ed37478096518418528 (patch)
tree39398ba98730bf9973d16ef7499bc126d1508ac7 /addons/web/static/src/js/views/basic/basic_view.js
parent270f821e94ce9a110a392d4405f600d34b437f33 (diff)
[FIX] mrp: allow skipping lot/sn on workorder
Usecase to reproduce: - Create a MO for drawer with SEC assemble BoM - Plan the workorders - In the first workorder record the production without specify a lot or serial number. - Second workorder, register a new serial for finished product and record production. A UserError that prevent to use a new serial number is raised. It happens because the system check the remaing quantity on other workorders + the quantity already produced for the current lot. In this case the remaining quantity for the first workorder is 0 and the current lot was not produced. However it should count the lines without lot as a 'remaining quantity' since they could be used later to create a new serial or lot number. This commit register the lines without lot and use them to raise the UserError and compute the allowed lot domain for finished lots. closes odoo/odoo#32632 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions