You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
788 B

  1. This module adds a technical programming feature, and it should be used by
  2. addon developers, not by end users. This means that you must not expect to see
  3. any changes if you are a user and install this, but if you find you have it
  4. already installed, it's probably because you have another modules that depend
  5. on this one.
  6. If you are a developer, to use this module, you need to:
  7. * Call anywhere in your code::
  8. formatted_string = self.env["res.lang"].datetime_formatter(datetime_value)
  9. * If you use Qweb::
  10. <t t-esc="env['res.lang'].datetime_formatter(datetime_value)"/>
  11. * If you call it from a record that has a `lang` field::
  12. formatted_string = record.lang.datetime_formatter(record.datetime_field)
  13. * ``models.ResLang.datetime_formatter`` docstring explains its usage.