summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-09-04 14:23:22 +0200
committerjem-odoo <jem@openerp.com>2018-09-07 14:06:49 +0200
commitaee642939ccdb2ba9876067e7daeb23c04b5ea13 (patch)
tree41f8393d22470d80370c1b50c75f09b761f5d54d
parentc31cebfe27a26b236cb3fb5d3b3151d387f5b834 (diff)
[FIX] sale_timesheet: hide 'create SO' on project
This button requires the rights to handle SO (create and update), so we now only display this button if current user can do such action. Otherwise, when submitting the wizard, the user gets an access error.
-rw-r--r--addons/sale_timesheet/views/project_task_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml
index ab3df3440bd..5a229f23726 100644
--- a/addons/sale_timesheet/views/project_task_views.xml
+++ b/addons/sale_timesheet/views/project_task_views.xml
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<xpath expr="//header" position="inside">
- <button name="action_make_billable" string="Create Sales Order" type="object" attrs="{'invisible': [('billable_type', '!=', 'no')]}"/>
+ <button name="action_make_billable" string="Create Sales Order" type="object" attrs="{'invisible': [('billable_type', '!=', 'no')]}" group="sale.group_sale_salesman"/>
</xpath>
<xpath expr="//page[@name='emails']" position="after">
<page name="billing_employee_rate" string="Invoicing" attrs="{'invisible': [('billable_type', '=', 'no')]}">