← Back to team overview

openerp-community team mailing list archive

lp:~mathieu-julius/openerp-product-attributes/openerp-product-attributes-add-rights-and-menu into lp:openerp-product-attributes

 

Mathieu Vatel - Julius Network Solutions has proposed merging lp:~mathieu-julius/openerp-product-attributes/openerp-product-attributes-add-rights-and-menu into lp:openerp-product-attributes.

Requested reviews:
  Product Core Editors (product-core-editors)

For more details, see:
https://code.launchpad.net/~mathieu-julius/openerp-product-attributes/openerp-product-attributes-add-rights-and-menu/+merge/176402

Add access rights on attribute.location + add a menu to access to attribute.group objects in "Sales > Configuration > Products > Attributes"
-- 
https://code.launchpad.net/~mathieu-julius/openerp-product-attributes/openerp-product-attributes-add-rights-and-menu/+merge/176402
Your team OpenERP Community is subscribed to branch lp:openerp-product-attributes.
=== modified file 'base_custom_attributes/security/ir.model.access.csv'
--- base_custom_attributes/security/ir.model.access.csv	2013-06-15 19:27:33 +0000
+++ base_custom_attributes/security/ir.model.access.csv	2013-07-23 14:44:37 +0000
@@ -1,10 +1,13 @@
-"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_base_custom_attributes_attribute_group_salemanager","base_custom_attributes_attribute_group","base_custom_attributes.model_attribute_group","base.group_sale_manager",1,1,1,1
-"access_base_custom_attributes_attribute_attribute_salemanager","base_custom_attributes_product_attribute","base_custom_attributes.model_attribute_attribute","base.group_sale_manager",1,1,1,1
-"access_base_custom_attributes_attribute_option_salemanager","base_custom_attributes_attribute_option","base_custom_attributes.model_attribute_option","base.group_sale_manager",1,1,1,1
-"access_base_custom_attributes_attribute_group_manager","base_custom_attributes_attribute_group","base_custom_attributes.model_attribute_group","base.group_no_one",1,1,1,1
-"access_base_custom_attributes_attribute_attribute_manager","base_custom_attributes_attribute_attribute","base_custom_attributes.model_attribute_attribute","base.group_no_one",1,1,1,1
-"access_base_custom_attributes_attribute_option_manager","base_custom_attributes_attribute_option","base_custom_attributes.model_attribute_option","base.group_no_one",1,1,1,1
-"access_base_custom_attributes_attribute_group_user","base_custom_attributes_attribute_group","base_custom_attributes.model_attribute_group","base.group_user",1,0,0,0
-"access_base_custom_attributes_attribute_attribute_user","base_custom_attributes_attribute_attribute","base_custom_attributes.model_attribute_attribute","base.group_user",1,0,0,0
-"access_base_custom_attributes_attribute_option_user","base_custom_attributes_attribute_option","base_custom_attributes.model_attribute_option","base.group_user",1,0,0,0
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_base_custom_attributes_attribute_group_salemanager,base_custom_attributes_attribute_group,base_custom_attributes.model_attribute_group,base.group_sale_manager,1,1,1,1
+access_base_custom_attributes_attribute_attribute_salemanager,base_custom_attributes_product_attribute,base_custom_attributes.model_attribute_attribute,base.group_sale_manager,1,1,1,1
+access_base_custom_attributes_attribute_option_salemanager,base_custom_attributes_attribute_option,base_custom_attributes.model_attribute_option,base.group_sale_manager,1,1,1,1
+access_base_custom_attributes_attribute_location_salemanager,base_custom_attributes_attribute_location,base_custom_attributes.model_attribute_location,base.group_sale_manager,1,1,1,1
+access_base_custom_attributes_attribute_group_manager,base_custom_attributes_attribute_group,base_custom_attributes.model_attribute_group,base.group_no_one,1,1,1,1
+access_base_custom_attributes_attribute_attribute_manager,base_custom_attributes_attribute_attribute,base_custom_attributes.model_attribute_attribute,base.group_no_one,1,1,1,1
+access_base_custom_attributes_attribute_option_manager,base_custom_attributes_attribute_option,base_custom_attributes.model_attribute_option,base.group_no_one,1,1,1,1
+access_base_custom_attributes_attribute_location_manager,base_custom_attributes_attribute_location,base_custom_attributes.model_attribute_location,base.group_no_one,1,1,1,1
+access_base_custom_attributes_attribute_group_user,base_custom_attributes_attribute_group,base_custom_attributes.model_attribute_group,base.group_user,1,0,0,0
+access_base_custom_attributes_attribute_attribute_user,base_custom_attributes_attribute_attribute,base_custom_attributes.model_attribute_attribute,base.group_user,1,0,0,0
+access_base_custom_attributes_attribute_option_user,base_custom_attributes_attribute_option,base_custom_attributes.model_attribute_option,base.group_user,1,0,0,0
+access_base_custom_attributes_attribute_location_user,base_custom_attributes_attribute_location,base_custom_attributes.model_attribute_location,base.group_user,1,1,1,0

=== modified file 'product_custom_attributes/custom_attributes_view.xml'
--- product_custom_attributes/custom_attributes_view.xml	2013-06-15 19:27:33 +0000
+++ product_custom_attributes/custom_attributes_view.xml	2013-07-23 14:44:37 +0000
@@ -23,6 +23,16 @@
             <field name="help"></field>
         </record>
 
+        <record id="attribute_group_form_action" model="ir.actions.act_window">
+            <field name="name">Attribute Groups</field>
+            <field name="res_model">attribute.group</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">tree,form</field>
+            <field name="search_view_id" ref="base_custom_attributes.view_attribute_attribute_search"/>
+            <field name="context">{"force_model": 'product.product'}</field>
+            <field name="help"></field>
+        </record>
+
         <record id="attribute_attribute_form_action" model="ir.actions.act_window">
             <field name="name">Product Attribute</field>
             <field name="res_model">attribute.attribute</field>
@@ -37,6 +47,9 @@
              action="attribute_set_form_action" id="menu_attribute_set_action"
              parent="product_custom_attributes.menu_attribute_in_config_product" sequence="1"/>
         <menuitem
+             action="attribute_group_form_action" id="menu_attribute_group_action"
+             parent="product_custom_attributes.menu_attribute_in_config_product" sequence="2"/>
+        <menuitem
              action="attribute_attribute_form_action" id="menu_attribute_attribute_action"
              parent="product_custom_attributes.menu_attribute_in_config_product" sequence="4"/>
 


Follow ups