Skip to content

Commit

Permalink
[IMP] change brand create variant no no_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
maq-adhoc committed Apr 28, 2023
1 parent 0616f00 commit 6652b61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions website_sale_ux/__manifest__.py
Expand Up @@ -31,6 +31,7 @@
'test': [],
'demo': [],
'data': [
'data/data.xml',
'views/product_template_views.xml',
],
'installable': True,
Expand Down
10 changes: 10 additions & 0 deletions website_sale_ux/data/data.xml
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<function model="product.attribute" name="write">
<function eval="[[('id', '=', (ref('website_sale.product_attribute_brand'))), ('product_tmpl_ids', '=', False)]]" model="product.attribute" name="search"/>
<value eval="{'create_variant': 'no_variant'}"/>
</function>
</data>
</odoo>

0 comments on commit 6652b61

Please sign in to comment.