Skip to content

Commit

Permalink
[ADD] product_ux: create demo data
Browse files Browse the repository at this point in the history
closes #501

Related: ingadhoc/stock#362
Related: ingadhoc/purchase#162
Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
vib-adhoc committed Mar 21, 2023
1 parent d4d7e74 commit e2fac66
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions product_ux/__manifest__.py
Expand Up @@ -39,6 +39,7 @@
'views/uom_uom_views.xml',
],
'demo': [
'demo/product_pricelist_demo.xml',
],
'installable': True,
'auto_install': False,
Expand Down
14 changes: 14 additions & 0 deletions product_ux/demo/product_pricelist_demo.xml
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="item1" model="product.pricelist.item">
<field name="base">list_price</field>
<field name="applied_on">1_product</field>
<field name="pricelist_id" ref="product.list0"/>
<field name="product_tmpl_id" ref="product.product_product_11_product_template"/>
<field name="price_discount">15</field>
<field name="min_quantity">3</field>
<field name="compute_price">formula</field>
</record>
</data>
</odoo>

0 comments on commit e2fac66

Please sign in to comment.