summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-04-30 15:15:07 +0200
committerjem-odoo <jem@openerp.com>2018-05-04 13:22:11 +0200
commit37dab1bc07c81bc98a48e98e52d7ec718c9dbbb4 (patch)
tree10986640a57116637a88eb5b8c5d7fa066dab4e3 /addons/web/static/src/js/views/basic/basic_model.js
parenta3372ffa33b3b90d9c293dbfb45b4062feac2865 (diff)
[FIX] sale_timesheet: access error during onchange
`compute_sudo=True` execute the compute method as super user, to avoid access error. This also allow to trigger other computation in cascade without being stopped by access right error if the system has job to do. However, during a onchange, the method is not executed as super user, so access error can raise. An explicit `sudo()`in the compute method is required, in addition to the 'compute_sudo` on the field (usefull when storing value). This commit avoid the problem when a user (that is no timesheet user) try to add a SO line the delivered qty is based on its related timesheets (analytic lines).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions