diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-06-23 11:41:04 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-06-30 08:53:29 +0000 |
| commit | d12813f7eec9d71be7573bf1dcaba9f8cf67eb79 (patch) | |
| tree | 113cd08f0773930a7e23ecd9425d39c67b47bf16 /doc/reference/javascript_reference.rst | |
| parent | 8add388db6339289439ed8baf7aad0828428461a (diff) | |
[IMP] tools: fallback on empty translation
Avoid returning False if, for any reason, the return is falsy (False,
None,...)
Following the discussion in odoo/odoo#53254, the root cause was a call in the form
_(foo)
where foo was equal False
While nothing else than a string should be the argument of _, it's
still technically possible to pass something else and get a bad return
value.
Fallback on empty string to be consistent.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
