[IMP] crm,hr,project: add context with default_groups_ref values and a custom help message
bzr revid: chm@openerp.com-20130130111403-lik1c5gvp7v9rid7
This commit is contained in:
parent
b7b969d6fa
commit
92a56bb6a0
|
@ -19,11 +19,9 @@
|
|||
</header>
|
||||
</xpath>
|
||||
<!-- add Reset Password button -->
|
||||
<xpath expr="//div[@class='oe_right oe_button_box']" position="replace">
|
||||
<div class="oe_right oe_button_box">
|
||||
<button string="Reset Password" type="object" name="action_reset_password"
|
||||
help="Send an email to the user to (re)set their password."/>
|
||||
</div>
|
||||
<xpath expr="//div[@class='oe_right oe_button_box']//button" position="replace">
|
||||
<button string="Reset Password" type="object" name="action_reset_password"
|
||||
help="Send an email to the user to (re)set their password."/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -152,7 +152,9 @@
|
|||
-->
|
||||
</group>
|
||||
<group>
|
||||
<field name="user_id" context="{'simple_mode': True, 'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"/>
|
||||
<field name="user_id"
|
||||
context="{'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"
|
||||
help="If you use the quick create, the new user will have access to 'Sales' for 'All Leads' and will be added as an employee."/>
|
||||
<label for="section_id"/>
|
||||
<div>
|
||||
<field name="section_id"/>
|
||||
|
@ -417,7 +419,8 @@
|
|||
</group>
|
||||
|
||||
<group>
|
||||
<field name="user_id" context="{'simple_mode': True, 'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"/>
|
||||
<field name="user_id" context="{'default_groups_ref': ['base.group_sale_salesman_all_leads', 'base.group_user']}"
|
||||
help="If you use the quick create, the new user will have access to 'Sales' for 'All Leads' and will be added as an employee."/>
|
||||
<label for="section_id"/>
|
||||
<div>
|
||||
<field name="section_id" widget="selection"/>
|
||||
|
@ -427,7 +430,7 @@
|
|||
<group>
|
||||
<field name="categ_ids"
|
||||
string="Categories" widget="many2many_tags"
|
||||
context = "{'object_name': 'crm.lead'}"
|
||||
context="{'object_name': 'crm.lead'}"
|
||||
domain="[('object_id.model', '=', 'crm.lead')]"/>
|
||||
|
||||
</group>
|
||||
|
|
|
@ -49,7 +49,9 @@
|
|||
</group>
|
||||
<group>
|
||||
<field name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
|
||||
<field name="user_id" on_change="onchange_user(user_id)" string="Related User"/>
|
||||
<field name="user_id" on_change="onchange_user(user_id)" string="Related User"
|
||||
context="{'default_groups_ref': ['base.group_user']}"
|
||||
help="Related user name for the resource to manage its access. If you use the quick create, the new user will be added as an employee."/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="notes" placeholder="Other Information ..." colspan="4"/>
|
||||
|
|
|
@ -102,7 +102,8 @@
|
|||
<field name="privacy_visibility"/>
|
||||
<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']}"/>
|
||||
context="{'default_groups_ref': ['project.group_project_user', 'project.group_project_manager', 'base.group_user']}"
|
||||
help="If you use the quick create, the new user will have access to 'Project' as a manager and will be added as an employee."/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
|
||||
|
@ -379,8 +380,11 @@
|
|||
<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}'
|
||||
context="{'simple_mode': True, 'default_groups_ref': ['project.group_project_user', 'base.group_user']}"/>
|
||||
<field name="user_id"
|
||||
attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"
|
||||
options='{"no_open": True}'
|
||||
context="{'default_groups_ref': ['project.group_project_user', 'base.group_user']}"
|
||||
help="If you use the quick create, the new user will have access of 'Project' as a user and will be added as an employee"/>
|
||||
<field name="planned_hours" widget="float_time"
|
||||
groups="project.group_time_work_estimation_tasks"
|
||||
on_change="onchange_planned(planned_hours, effective_hours)"/>
|
||||
|
|
|
@ -71,7 +71,9 @@
|
|||
<h1><field name="name"/></h1>
|
||||
<group>
|
||||
<group groups="base.group_user">
|
||||
<field name="user_id"/>
|
||||
<field name="user_id"
|
||||
context="{'default_groups_ref': ['project.group_project_user', 'base.group_user']}"
|
||||
help="If you use the quick create, the new user will have access to 'Project' as a user and will be added as an employee."/>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
|
||||
<field name="email_from"/>
|
||||
<label for="project_id" groups="base.group_user"/>
|
||||
|
|
Loading…
Reference in New Issue