diff options
| author | Sébastien Theys <seb@odoo.com> | 2018-12-17 12:45:10 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2018-12-18 13:02:06 +0000 |
| commit | bb8e6e7a82c4d16871dcceb9800da30f83e6a6bf (patch) | |
| tree | 087d2c974813182ca3091ef2db873723910989f2 /addons | |
| parent | f7631933745dfb6cd60e00f1f8ecedf46126788e (diff) | |
[IMP] product: improve variant demo data
Activate variant by default with demo data: since we have demo data creating
variants, the database will be more consistent if the option is also activated
by default. It also allows to gain time when making a demo or testing feature
using them on a new database.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/product/data/product_demo.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/product/data/product_demo.xml b/addons/product/data/product_demo.xml index 1572481e9ef..d4299a2dd51 100644 --- a/addons/product/data/product_demo.xml +++ b/addons/product/data/product_demo.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> <data noupdate="1"> + <!-- We want to activate product variant by default for easier demoing. --> + <record id="base.group_user" model="res.groups"> + <field name="implied_ids" eval="[(4, ref('product.group_product_variant'))]"/> + </record> <record id="product_category_2" model="product.category"> <field name="parent_id" ref="product.product_category_all"/> |
