Email Template Date Utils

Adds extra date functions for email templates

Technical Name:
email_template_dateutil
Version:
7.0
License:
Author:
Savoir-faire Linux
  • Odoo Version

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