Email Template Date Utils

by ,
Odoo 1
v 7.0 Third Party 241
Download for 7.0 series
You bought this module and need support ? Click here !
Technical name email_template_dateutil
LicenseAGPL-3
Websitehttp://www.savoirfairelinux.com
Repositorylp:server-env-tools/7.0

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

Please log in to comment on this module

Please choose a rating from 1 to 5 for this module.
Odoo
Usefull and easy to use
by on

A 'must have' module, if you want to write email templates without going crazy with timezone problems.