Email Template Date Utils
by Savoir-faire Linux http://www.savoirfairelinux.com , Odoo Community Association (OCA) http://www.savoirfairelinux.com
Odoo
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Social Network (mail)
|
Technical Name |
email_template_dateutil |
License | AGPL-3 |
Website | http://www.savoirfairelinux.com |
This module adds an extra filter in email templates:
- format_date(format, tz=tzname) : parses and formats a date or datetime string.
- Optional parameter tz allows specifying the timezone to use. Otherwise, the user's timezone or server timezone will be used. If none are found, time is left in UTC
Example: ${ object.date_field|format_date('%m/%d/%Y') }
Contributors
- Vincent Vinet (vincent.vinet@savoirfairelinux.com)
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedUsefull and easy to use
A 'must have' module, if you want to write email templates without going crazy with timezone problems.
There are no comments yet!