diff options
| author | Jérome Maes <jem@openerp.com> | 2017-08-10 14:52:49 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2017-08-11 10:14:31 +0200 |
| commit | a7985a5abb49326991a97c707611bb3670dbfdd3 (patch) | |
| tree | 3e206fbefb9e8c002b804253a66d1dbc2f0eebf0 /addons/web/static/src/js/views/basic | |
| parent | 85571bb78c9acc4e867cc3b480be9236a756fc22 (diff) | |
[FIX] sale_timesheet: revenue computation with sudo()
Since the revenue computation is an automatic system
action, it should be done in sudo(). This avoid access
error.
Indeed, if a company creates and confirms a SO, a task
can be created in another company project. Logging
timesheet from the project company is thus impossible
since the user can not access SO line of the origin
company.
Adding sudo() seems better than givin read access
to 'all' so line for timesheet user.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
