[IMP] sale_project: hide the project overview if not manager

Before this commit, the user who is not a Project Manager can access to
the project overview.

This commit removes this access to give this access only for the Project
Manager.

task-2440564
This commit is contained in:
Xavier BOL (xbo)
2021-02-01 13:48:00 +01:00
committed by Laurent Stukkens (LTU)
parent b6c6105e59
commit 1eec92546c
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="hr_timesheet.project_invoice_form"/>
<field name="arch" type="xml">
<div class="oe_button_box" position="inside">
<button string="Project Overview" class="oe_stat_button" type="object" name="action_view_timesheet" icon="fa-puzzle-piece" attrs="{'invisible': [('allow_billable', '=', False)]}"/>
<button string="Project Overview" class="oe_stat_button" type="object" name="action_view_timesheet" icon="fa-puzzle-piece" attrs="{'invisible': [('allow_billable', '=', False)]}" groups="project.group_project_manager"/>
<button class="d-none d-md-inline oe_stat_button"
type="object" name="action_view_so" icon="fa-dollar"
attrs="{'invisible': ['|', '|', ('allow_billable', '=', False), ('sale_order_id', '=', False), ('pricing_type', '=', 'task_rate')]}"