summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_view
diff options
context:
space:
mode:
authorNicolas Galler <ngl@odoo.com>2020-10-19 12:12:09 +0000
committerNicolas Galler <ngl@odoo.com>2020-10-21 09:26:59 +0000
commit43718d0694d8d0c7b53e3511cb8523a645ebddb1 (patch)
treeae87793caa532d392bad5df25177cbbc03feb85f /addons/mail/static/src/models/thread_view
parentf31bdc0ae16698306a776332f3aa4aaa1cade764 (diff)
[FIX] product_email_template: use superuser account to send email in su mode
Behavior prior to the fix: The email template associated with a product on an invoice placed via the web portal is sent with no email_from, resulting in a failure. The reason is that before 13.0 .sudo() before sending a mail would send it as superuser user (which was the intention in this case), but since 13.0 for the same intention we need .with_user(SUPERUSER_ID). Behavior after the fix: When sending the product email, if we are in SU mode, we'll switch to the super user account, emulating the pre-13.0 behavior. Similar fix to b12bcfbb1b44cc72cdf73506c540c387f00a37e9 opw-2346415 closes odoo/odoo#60409 X-original-commit: 7749fec536bd1533f0da0a2bc0df084e4e80ed4d Signed-off-by: Nicolas Galler <nicocrm@users.noreply.github.com> Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_view')
0 files changed, 0 insertions, 0 deletions