summaryrefslogtreecommitdiff
path: root/odoo/addons/test_new_api/security/ir.model.access.csv
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-10-29 14:06:18 +0000
committerJulien Castiaux <juc@odoo.com>2019-11-12 13:48:40 +0000
commit7b65a63c97d185d9b6e6f1b0bfbc7968d1e4de49 (patch)
treed4972ef2ee16ab5bcb5f1a6b1c9b725aad917a72 /odoo/addons/test_new_api/security/ir.model.access.csv
parentf0ae04ab3ddeb05ad02c0358ae174993b19a4c15 (diff)
[IMP] tools: restore P2 formataddr default behavior
Python 2 `email.tools.formataddr` doesn't encode not RFC-2822 compliant realname to base64 or quoted-printable. This is the wanted behavior to output formatted email addresses on screen. Python 3 `email.tools.formataddr` does encode the realname to be RFC-2822 compliant. This is the wanted behavior when connecting to a smtp server to send emails. That method has been deprecated by pep-594 as the new python email API is capable of automatically formatting email address in a RFC compliant way. As the method was still in use in a lot of modules as the preferred way to format email addresses, a refined P3-like implementation as been included in the tool suite. This commit changes the default behavior so it mimics P2 implementation with an easy way to use the P3 behavior. Task: 2003936
Diffstat (limited to 'odoo/addons/test_new_api/security/ir.model.access.csv')
0 files changed, 0 insertions, 0 deletions