[IMP] mrp: default prod. tmpl. ids in the context

Add a `default_product_tmpl_ids` in the context on the BOM operations
field. The purpose is to have the product set by default when creating a
new operation's step.

Used by 91e53397812e707611d2f430c7d534e215f8fd4f (enterprise)

task-2328830

X-original-commit: 7fe3ce4a1b2c43188b907fdec0553cf995e57bab
This commit is contained in:
svs-odoo
2020-10-07 11:22:55 +00:00
parent af81f0201a
commit 2b6ce56289
+1 -1
View File
@@ -103,7 +103,7 @@
<field name="operation_ids"
attrs="{'invisible': [('type','not in',('normal','phantom'))]}"
groups="mrp.group_mrp_routings"
context="{'default_company_id': company_id}"/>
context="{'default_company_id': company_id, 'default_product_tmpl_ids': [product_tmpl_id]}"/>
</page>
<page string="By-products"
name="by_products"