[FIX] product: default product_tmpl_id in view form
The form view product.template.common.form is common for product.product and product.template Then the active_id could not be used by default for the field product_tmpl_id. opw:670779
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Vendors"/>
|
||||
<field name="seller_ids" context="{'default_product_tmpl_id': active_id}"/>
|
||||
<field name="seller_ids" context="{'default_product_tmpl_id': context.get('product_tmpl_id', active_id)}"/>
|
||||
<group name="packaging" string="Packaging"
|
||||
colspan="4"
|
||||
attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}"
|
||||
|
||||
Reference in New Issue
Block a user