Files
odoo_source/addons
Touati Djamel (otd) f4e9e15618 [FIX] mrp: avoid a traceback when using SN in a transfer
Steps to reproduce the bug:
- Go to Inventory→ Configuration→ Warehouse Management →Operations Types
- Go inside “Receipts”, and enable the checkbox “Create New Lots/Serial
Numbers for Components” and `Use Existing Lots/Serial Numbers`under the
traceability section
- Create a receipt transfers with a traceable product
- Mark as to do the transfer
- Try to add a SN for the product

Problem:
Traceback is triggered: “key error: raw_material_production_id”
because we use this field to add it in the context from the parent in
the `stock.move.line` view:
https://github.com/odoo/odoo/blob/15.0/addons/mrp/views/stock_move_views .xml#L53

But this field is not present in all views of the `stock.move` model

Solution:
To avoid adding this field in all the `stock.move` views, it is better
to add it in the context from the `python` code

closes odoo/odoo#98110

X-original-commit: 545713ae0a559e7f2747dd3cb4211ab752e1ef0c
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2022-08-16 09:19:28 +02:00
..
2022-07-07 13:30:24 +02:00
2022-08-16 09:19:08 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-12 20:16:50 +02:00
2022-08-12 20:16:50 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-03 13:44:49 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-08-16 09:19:08 +02:00
2022-07-07 13:30:24 +02:00
2022-08-10 16:08:06 +02:00
2022-07-07 13:30:24 +02:00
2022-08-08 12:33:03 +02:00
2022-08-16 09:19:08 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00
2022-07-07 13:30:24 +02:00