diff options
| author | jem-odoo <jem@openerp.com> | 2018-09-04 14:23:22 +0200 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2018-09-07 14:06:49 +0200 |
| commit | aee642939ccdb2ba9876067e7daeb23c04b5ea13 (patch) | |
| tree | 41f8393d22470d80370c1b50c75f09b761f5d54d /addons | |
| parent | c31cebfe27a26b236cb3fb5d3b3151d387f5b834 (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.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/sale_timesheet/views/project_task_views.xml | 2 |
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')]}"> |
