summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.contentMenu.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-04-13 09:56:25 +0200
committerNicolas Martinelli <nim@odoo.com>2017-04-13 12:30:42 +0200
commit471115b06ad4a8774a147267e4cfa845f3d1218b (patch)
tree08aedfd6c522e05f61f26a2eb47f9987da1ae6b3 /addons/website/static/src/js/website.contentMenu.js
parent00e169c05a270a0943a74fbeb0a884009946c7cd (diff)
[FIX] mrp: lose traceability
- Create 3 products (A, B & C) with tracking set to 'serial' - Create a BOM: A consumes 1 unit of B and C - Create a MO for A, create the lot A1 for the finished product - Create another MO for A, use the existing lot A1 for the finished product - Try to mark the MO as done => you get an error - In the finished products tab, change manually the lot, for example by creating A2 - Mark the MO as done - Open the Upstream Traceability => under the MO, there is nothing, the traceability is lost. The `check_finished_move_lots` method takes care of setting the `lot_produced_id` on the `move_raw_ids`. However, when changing manually the finished product lot, this modification is not propagated. Therefore, when posting the inventory (`post_inventory`), the line: ``` move_raw.move_lot_ids.filtered(lambda x: x.lot_produced_id.id == lot)... ``` doesn't return any lot. Consequently, `consumed_quant_ids` is empty, and the traceability is lost. opw-724944
Diffstat (limited to 'addons/website/static/src/js/website.contentMenu.js')
0 files changed, 0 insertions, 0 deletions