summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-02-18 15:24:00 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-01 12:39:56 +0000
commitf4319580e576e033b95db1627dd11f126c187323 (patch)
treeca4bed47ea8bef3d4be415efe60b8235bb338ab1 /addons/web/static/src/js/fields/basic_fields.js
parent0fc9a97d20a480a10dc5258dcc22bf5e52b48293 (diff)
[ADD] tools: lazy translation method
Introduces the method _lt The translation method is now evaluated lazily. It allows to declare global variables with translatable content e.g. this code will now work: LABEL = _lt("User") def _compute_label(self): context = {'lang': self.partner_id.lang} self.user_label = LABEL
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions