summaryrefslogtreecommitdiff
path: root/odoo/tools/mail.py
diff options
context:
space:
mode:
authorBarad Mahendra <mba@openerp.com>2018-12-05 06:22:23 +0000
committerThibault Delavallée <tde@odoo.com>2019-05-09 14:58:21 +0000
commitb12ab8008b07198038e49255e2e8f165a9cfa28c (patch)
tree98cc30c41b1febc1b2a686afb66d25428a61dc77 /odoo/tools/mail.py
parentd0be25d277538bca13f64ea3b953238f8d87856b (diff)
[IMP] mail: improve "Pay Now" email notification layout
In mail custom layout template display 'best regards' and signature in email only when user exists and is not odoobot. Border-bottom style is also now white-listed in sanitizer in order to ease customization of emails. Related to task ID 1873634 Linked to PR #28781
Diffstat (limited to 'odoo/tools/mail.py')
-rw-r--r--odoo/tools/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py
index b6a743d874c..d6b8ec256b7 100644
--- a/odoo/tools/mail.py
+++ b/odoo/tools/mail.py
@@ -50,7 +50,7 @@ class _Cleaner(clean.Cleaner):
'margin', 'margin-top', 'margin-left', 'margin-bottom', 'margin-right',
'white-space',
# box model
- 'border', 'border-color', 'border-radius', 'border-style', 'border-width', 'border-top',
+ 'border', 'border-color', 'border-radius', 'border-style', 'border-width', 'border-top', 'border-bottom',
'height', 'width', 'max-width', 'min-width', 'min-height',
# tables
'border-collapse', 'border-spacing', 'caption-side', 'empty-cells', 'table-layout']