[IMP] lunch,product: add context with default_groups_ref values and a custom help message

bzr revid: chm@openerp.com-20130130114652-ekta1rj3aqixwyx5
This commit is contained in:
Christophe Matthieu 2013-01-30 12:46:52 +01:00
parent 5bea27647f
commit d2a8780113
2 changed files with 9 additions and 3 deletions

View File

@ -321,7 +321,9 @@
<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'/>
@ -406,7 +408,9 @@
<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>

View File

@ -115,7 +115,9 @@
<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')]}"/>