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 97d6966
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website_sale_ux/__manifest__.py
Expand Up @@ -20,7 +20,7 @@
{
'name': 'Website Sale UX',
'category': 'base.module_category_knowledge_management',
'version': "15.0.1.0.0",
'version': "15.0.2.0.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand All @@ -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 97d6966

Please sign in to comment.