summaryrefslogtreecommitdiff
path: root/addons/product/security
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-01-21 11:50:46 +0100
committerThibault Delavallée <tde@openerp.com>2014-01-21 11:50:46 +0100
commitb3a4778f26662ccfd007114774f66972db895360 (patch)
treedecf28863c1ce3fefe3efc727aeb7cdf2009d4e9 /addons/product/security
parent28eaa636f0bfbf497e616edcfbc64d8a720e788d (diff)
[IMP] product variant: removed override of fields_view_get and use a "one group or another"
behavior for product variant. Users are either in group_product_mono or group_product_variant, allowing to tune the form view according to the group the user belongs to. product: added group_product_mono group sale: added set_group_product_variant method that adds or remove the group_product_mono according to the group_product_variant being unchecked or checked. product: updated form view accordingly bzr revid: tde@openerp.com-20140121105046-zkbs778upjg0lpyr
Diffstat (limited to 'addons/product/security')
-rw-r--r--addons/product/security/product_security.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/product/security/product_security.xml b/addons/product/security/product_security.xml
index 81a32967d59..bb1b7d6f956 100644
--- a/addons/product/security/product_security.xml
+++ b/addons/product/security/product_security.xml
@@ -8,6 +8,10 @@
<field name="name">Manage Product Variants</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
+ <record id="group_product_mono" model="res.groups">
+ <field name="name">Do Not Manage Product Variants</field>
+ <field name="category_id" ref="base.module_category_hidden"/>
+ </record>
<record id="group_sale_pricelist" model="res.groups">
<field name="name">Sales Pricelists</field>