summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-07-22 09:34:39 +0000
committerRomain Derie <rde@odoo.com>2019-07-22 09:47:57 +0000
commit4d942852c82414bd986112230a3e8e2d183b5c59 (patch)
treed36b37622c7a0ce42e90072128bda537e478ad61 /addons/web/static/src
parenta55fb7ad0c0223b42ab647035621ce8fba58522d (diff)
[FIX] portal: correctly return the document in sudo
Since 1e6c3bec2c5 that refactored the sudo in general, the `_document_check_access` method from portal that was supposed to return the document in sudo mode was not returning the expected record. It was not with the admin UID, making some code to crash, for instance: https://github.com/odoo/odoo/blame/120f890ecf57969878399d9543b49080e7618c60/addons/stock/models/stock_quant.py#L252 Which is doing `self.with_user(self._uid).check_access_rights('read')`. Step to reproduce: - Install `sale_stock` module. - Create a quotation for a portal user - As the portal user, try to sign the quotation - It will crash on `stock.quant` right access closes odoo/odoo#35030 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions