summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2020-01-15 09:20:14 +0000
committerDavid Beguin <dbe@odoo.com>2020-01-17 10:25:20 +0000
commit307f51ab8597ca14e374f809401f0cf84dcde954 (patch)
tree287413710539bc9d3f53b279505a3e1f1b25504b /addons/web/static/src/js/views/basic/basic_renderer.js
parentded9d60986022caf6973e2fbf2b01c3783117db9 (diff)
[IMP] web: split _content_image with get response sub method
This commit splits the _content_image method to allow to call the get response part individually. This is needed because _content_image call binary_content using current user access. But in some cases, we need to render a binary content even if the user does not have access to the target model (typically for public users). The binary_content is gotten in sudo mode where needed and the result can be given to the _content_image_get_response. This will avoid code duplication where the sudo use case is met. Usage : This commit prepare the redesign of survey. This _content_image_get_response method will be called to grant access of background image even for public users. Other modules will use this new method like elearning (website_slides) to display karma ranking, etc. Task ID: '2150291' PR #43237
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions