summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-10-13 11:59:16 +0200
committeramoyaux <arm@odoo.com>2017-10-16 13:14:46 +0200
commit671c20555e97fa882dfc42cbd9e429141a87e7c5 (patch)
tree5a5dee174d5169a4692eb2e18813baf7432f3c79 /addons/web/static/tests/fields/basic_fields_tests.js
parent0aefcdbad77ffe560f24eda0dd5239f0ec9bc645 (diff)
[FIX] mrp: Unbuild multi serial number components
Use case to reproduce: - Create a product with a BOM that use at least twice the same component tracked by SN - Build this product with SN 'A' and SN 'B' - Unbuild it -> Constraint error on duplicate SN It happens because the unbuild order will create only one stock.move.lots for SN A with a quantity of 2. This commit create a stock.move.lots by quant used, for example if the MO used 2 quants with a qty of 1 and one with lot 'A' and the other with lot 'B'. It will create 2 stock.move.lots with lots 'A' and 'B'. Still a know issue: If the user try to unbuild twice the same MO it will reuse the same unbuilded componenets than the first unbuild order.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions