[IMP] sale: no variant creation from stat button action
Purpose of this commit is to prevent creating and importing new variants from the variant list view when you open it with the variant state button becuase record not save while creating a new variants on the fly from a product template. task-1916037 closes odoo/odoo#33619 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
@@ -330,7 +330,7 @@
|
||||
<field name="name">Product Variants</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="context">{'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id}</field>
|
||||
<field name="context">{'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id, 'create': False}</field>
|
||||
<field name="search_view_id" ref="product_search_form_view"/>
|
||||
<field name="view_ids"
|
||||
eval="[(5, 0, 0),
|
||||
|
||||
Reference in New Issue
Block a user