[FIX] mrp_plm: Wrong product template written on BoM lines
When trying to update a BoM from an ECO, `default_product_tmpl_id` is set in the context. This was mismatching whith the product template of any new BoM lines writen on the new BoM. To fix this we simply add the field `product_tmpl_id` in the view of the BoM lines with `force_save` set, to prevent using the product template defined in the context. closes odoo/odoo#36469 Taskid: BugsLogistics Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
committed by
Simon Lejeune
parent
15a5e43767
commit
4903fb6290
@@ -77,6 +77,7 @@
|
||||
<field name="routing_id" invisible="1"/>
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="product_id" context="{'default_type': 'product'}"/>
|
||||
<field name="product_tmpl_id" invisible="1"/>
|
||||
<button name="action_see_attachments" type="object" icon="fa-files-o" aria-label="Product Attachments" title="Product Attachments" class="float-right oe_read_only"/>
|
||||
<field name="attachments_count" class="text-left oe_read_only"
|
||||
string=" "/>
|
||||
|
||||
Reference in New Issue
Block a user