summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_shortcode_data.xml
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-01-07 11:45:52 +0100
committerJeremy Kersten <jke@odoo.com>2016-01-07 14:42:57 +0100
commit9e6528f77d56a5774eda0ce08a9b1a610777ce4d (patch)
tree8a55696281e75d53140ca8e085fae5d8e028efc4 /addons/mail/data/mail_shortcode_data.xml
parent7473f4a3c77d4c5891fc3d865c1f296d7b37200a (diff)
[FIX] email_template: allow to format date in the right language
Format_tz allow to format a date, but if the format was '%B', it was always January regardless lang in context Now, it possible to use babel, to get the date in the customer language. So: format_tz(object.date_order, format='short', context={'use_babel':1, 'lang': 'fr_BE'}) will return '5/01/16 22:20' format_tz(object.date_order, format='short', context={'use_babel':1, 'lang': 'en_US'}) will return '1/5/16, 10:20 PM' format_tz(object.date_order, context={'use_babel':1, 'lang': 'en_US}) will return 'Jan 5, 2016, 10:20:31 PM' format_tz(object.date_order, context={'use_babel':1, 'lang': 'fr_BE'}) will return '5 janv. 2016 22:20:31'
Diffstat (limited to 'addons/mail/data/mail_shortcode_data.xml')
0 files changed, 0 insertions, 0 deletions