[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:
Goffin Simon
2016-03-11 16:53:22 +01:00
parent 340a085a96
commit 2ac57c6a01
+1 -1
View File
@@ -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'])]}"