Skip to content

Commit

Permalink
[FIX] product: disable "create & edit" shotcut for product variants
Browse files Browse the repository at this point in the history
With the purchase module, when you create a new vendor, you can
select what variant of the product the vendor sells. The droplist
has the "Create & Edit" button to quickly create/edit variants.
This is not the wanted behavior. This PR removes the "Create & Edit"
suggestion.

opw-1909009

closes odoo#28845
  • Loading branch information
Julien00859 committed Nov 20, 2018
1 parent e713ed2 commit 124b5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/product/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
<group>
<group string="Vendor">
<field name="product_variant_count" invisible="1"/>
<field name="product_id" groups="product.group_product_variant" domain="[('product_tmpl_id', '=', product_tmpl_id)]"/>
<field name="product_id" groups="product.group_product_variant" domain="[('product_tmpl_id', '=', product_tmpl_id)]" options="{'no_create_edit': True}"/>
<field name="name" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"/>
<field name="product_name"/>
<field name="product_code"/>
Expand Down

0 comments on commit 124b5b8

Please sign in to comment.