diff options
| author | jem-odoo <jem@openerp.com> | 2019-05-21 07:00:48 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-06-06 06:58:46 +0000 |
| commit | 20f3290eab2bb8044fcddc4111f7206e57f05c24 (patch) | |
| tree | 7dd6d8fc4b38c0c99651d2687668bf2b3ec505e8 /addons/web/static/src/js/fields | |
| parent | 5513ebdf1bdcae3dfec6cdaaa0132111771deaa0 (diff) | |
[FIX] sale_timesheet: billable task access error for project user
When a project user (without any sales acces rights) want to create a task in
a billable project (linked to a sales order / sales order line), he will face
some access right issues :
1/ the system want to set the default customer on the task, by taking the one
from the sale order line linked to the project in which the task is created. This
raises an error as the task creator has no right to read the project'sale line.
2/ after that, the "sales order" field is computed on the task. This raises the
same error as we need acces through sale line to determine the sales order of the
task.
This commit fixes thoses problem by adding a `sudo` and by adding the "sales order"
field only for sales person.
opw-1999673
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
