update group permission
This commit is contained in:
parent
ca20dfe016
commit
fb547f0f4d
|
@ -7,7 +7,8 @@
|
|||
<field name="inherit_id" ref="sale_timesheet.project_project_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='options_active']/div" position="after">
|
||||
<div name="creation_div" attrs="{'invisible': [('id', '=', False)]}">
|
||||
<div name="creation_div" attrs="{'invisible': [('id', '=', False)]}"
|
||||
groups="project.group_project_manager">
|
||||
<label for="create_date" class="oe_inline" string="Created On"/>
|
||||
<field name="create_date" readonly="1" class="oe_inline"/>
|
||||
</div>
|
||||
|
@ -17,7 +18,7 @@
|
|||
icon="fa-puzzle-piece" attrs="{'invisible': [('allow_billable', '=', False)]}" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='billing_employee_rate']" position="replace">
|
||||
<page name="billing_employee_rate" string="Invoicing"
|
||||
<page name="billing_employee_rate" string="Invoicing" groups="project.group_project_manager"
|
||||
attrs="{'invisible': [('allow_billable', '=', False)]}">
|
||||
<group>
|
||||
<field name="display_create_order" invisible="1"/>
|
||||
|
@ -61,7 +62,8 @@
|
|||
options="{'no_create': True, 'no_edit': True, 'delete': False}"/>
|
||||
<field name="is_check" invisible="1"/>
|
||||
</group>
|
||||
<button name="%(action_project_resource_wizard)d" string="Add Resource" type="action" groups="project.group_project_manager" class="oe_highlight"/>
|
||||
<button name="%(action_project_resource_wizard)d" string="Add Resource" type="action"
|
||||
groups="project.group_project_manager" class="oe_highlight"/>
|
||||
<field name="sale_line_employee_ids"
|
||||
attrs="{'invisible': ['|', ('bill_type', '!=', 'customer_project'), ('pricing_type', '!=', 'employee_rate')]}">
|
||||
<tree editable="top" create="false">
|
||||
|
@ -150,15 +152,16 @@
|
|||
</div>-->
|
||||
<xpath expr="//field[@name='user_id']" position="replace">
|
||||
<field name="user_id" string="Project Manager" widget="many2one_avatar_user" required="0"
|
||||
groups="project.group_project_manager"
|
||||
attrs="{'readonly':[('active','=',False)]}" domain="[('share', '=', False)]"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='partner_id']" position="replace">
|
||||
<field name="partner_id" string="Client" required="0"/>
|
||||
<field name="date_start"/>
|
||||
<field name="date"/>
|
||||
<field name="partner_id" string="Client" required="0" groups="project.group_project_manager"/>
|
||||
<field name="date_start" groups="project.group_project_manager"/>
|
||||
<field name="date" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='settings']" position="after">
|
||||
<page string="Consultant Allocation"
|
||||
<page string="Consultant Allocation" groups="project.group_project_manager"
|
||||
attrs="{'invisible':['|',('pricing_type','!=','employee_rate'),('project_type','!=','hours_in_consultant')]}">
|
||||
<field name="project_cons_hrs">
|
||||
<tree editable="top">
|
||||
|
@ -174,8 +177,15 @@
|
|||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='privacy_visibility']" position="replace">
|
||||
<field name="privacy_visibility" widget="radio" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='allowed_internal_user_ids']" position="replace">
|
||||
<field name="allowed_internal_user_ids" widget="many2many_tags" groups="project.group_project_manager"
|
||||
attrs="{'invisible': [('privacy_visibility', '!=', 'followers')]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='privacy_visibility']" position="before">
|
||||
<field name="tag_ids" widget="many2many_tags"/>
|
||||
<field name="tag_ids" widget="many2many_tags" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -58,13 +58,13 @@
|
|||
</button>
|
||||
</div>
|
||||
<xpath expr="//field[@name='allowed_internal_user_ids']" position="after">
|
||||
<field name="is_sub_project" invisible="0"/>
|
||||
<field name="is_sub_project" invisible="0" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='allowed_internal_user_ids']" position="after">
|
||||
<field name="parent_project" attrs="{'invisible': [('is_sub_project', '=', False)]}"/>
|
||||
<field name="parent_project" attrs="{'invisible': [('is_sub_project', '=', False)]}" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='allowed_internal_user_ids']" position="after">
|
||||
<field name="sub_project" widget="many2many_tags"
|
||||
<field name="sub_project" widget="many2many_tags" groups="project.group_project_manager"
|
||||
attrs="{'invisible': [('is_sub_project', '=', True)]}"
|
||||
options="{'no_open': True, 'no_create': True, 'no_create_edit': True}"/>
|
||||
</xpath>
|
||||
|
|
Loading…
Reference in New Issue