mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 10:32:00 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
This module adds a technical programming feature, and it should be used by
|
||||
addon developers, not by end users. This means that you must not expect to see
|
||||
any changes if you are a user and install this, but if you find you have it
|
||||
already installed, it's probably because you have another modules that depend
|
||||
on this one.
|
||||
|
||||
If you are a developer, to use this module, you need to:
|
||||
|
||||
* Call anywhere in your code::
|
||||
|
||||
formatted_string = self.env["res.lang"].datetime_formatter(datetime_value)
|
||||
|
||||
* If you use Qweb::
|
||||
|
||||
<t t-esc="env['res.lang'].datetime_formatter(datetime_value)"/>
|
||||
|
||||
* If you call it from a record that has a `lang` field::
|
||||
|
||||
formatted_string = record.lang.datetime_formatter(record.datetime_field)
|
||||
|
||||
* ``models.ResLang.datetime_formatter`` docstring explains its usage.
|
||||
Loading…
Add table
Add a link
Reference in a new issue