[IMP] lunch,product: add context with default_groups_ref values and a custom help...
authorChristophe Matthieu <chm@openerp.com>
Wed, 30 Jan 2013 11:46:52 +0000 (12:46 +0100)
committerChristophe Matthieu <chm@openerp.com>
Wed, 30 Jan 2013 11:46:52 +0000 (12:46 +0100)
bzr revid: chm@openerp.com-20130130114652-ekta1rj3aqixwyx5

addons/lunch/lunch_view.xml
addons/product/product_view.xml

index 8974099..46e5296 100644 (file)
                     <sheet>
                         <group>
                             <group>
-                                <field name='user_id'/>
+                                <field name='user_id'
+                                context="{'default_groups_ref': ['base.group_user']}"
+                                help="If you use the quick create, the new user will be added as an employee."/>
                             </group>
                             <group> 
                                 <field name='date'/>
                 <form string="cashmove form" version="7.0">
                     <sheet>
                         <group>
-                            <field name="user_id"/>
+                            <field name="user_id"
+                                context="{'default_groups_ref': ['base.group_user']}"
+                                help="If you use the quick create, the new user will be added as an employee."/>
                             <field name="date"/>
                             <field name="amount"/>
                         </group>
index 3e36059..25b20dd 100644 (file)
                                 <group name="inventory">
                                     <group name="status" string="Status">
                                         <field name="state"/>
-                                        <field name="product_manager"/>
+                                        <field name="product_manager"
+                                        context="{'default_groups_ref': ['base.group_sale_manager', 'base.group_user']}"
+                                        help="If you use the quick create, the new user will have access to 'Sales' as a manager and will be added as an employee."/>
                                     </group>
                                     <group name="Weights" groups="product.group_stock_packaging" string="Weights">
                                         <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>