[IMP] crm, project: context with simple_mode for the user_id field
bzr revid: chm@openerp.com-20130128140201-pdy1xdkqxh0a3in4
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
-->
|
||||
</group>
|
||||
<group>
|
||||
<field name="user_id"/>
|
||||
<field name="user_id" context="{'simple_mode': True, 'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"/>
|
||||
<label for="section_id"/>
|
||||
<div>
|
||||
<field name="section_id"/>
|
||||
@@ -417,7 +417,7 @@
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<field name="user_id"/>
|
||||
<field name="user_id" context="{'simple_mode': True, 'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"/>
|
||||
<label for="section_id"/>
|
||||
<div>
|
||||
<field name="section_id" widget="selection"/>
|
||||
|
||||
@@ -100,7 +100,9 @@
|
||||
<group>
|
||||
<group>
|
||||
<field name="privacy_visibility"/>
|
||||
<field name="user_id" string="Project Manager" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>
|
||||
<field name="user_id" string="Project Manager"
|
||||
attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"
|
||||
context="{'simple_mode': True, 'default_groups_ref': ['project.group_project_user', 'base.group_user']}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
|
||||
@@ -377,7 +379,8 @@
|
||||
<group>
|
||||
<group>
|
||||
<field name="project_id" on_change="onchange_project(project_id)" context="{'default_use_tasks':1}"/>
|
||||
<field name="user_id" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}" options='{"no_open": True}'/>
|
||||
<field name="user_id" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}" options='{"no_open": True}'
|
||||
context="{'simple_mode': True, 'default_groups_ref': ['project.group_project_user', 'base.group_user']}"/>
|
||||
<field name="planned_hours" widget="float_time"
|
||||
groups="project.group_time_work_estimation_tasks"
|
||||
on_change="onchange_planned(planned_hours, effective_hours)"/>
|
||||
|
||||
Reference in New Issue
Block a user