Email Template Date Utils
by Savoir-faire Linux http://www.savoirfairelinux.com , Odoo Community Association (OCA) http://www.savoirfairelinux.com
Odoo
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
Usefull 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!