summaryrefslogtreecommitdiff
path: root/addons/base_import_module/tests/test_module/static/src
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-03-03 12:26:16 +0100
committerOlivier Dony <odo@openerp.com>2017-03-03 15:11:19 +0100
commit163f5a626868e327fba65a4f8189ef452be5206d (patch)
tree4377f484652c7c44bb2aa1c728572a1cf2f823e7 /addons/base_import_module/tests/test_module/static/src
parentfaa3d6a69bb6e806ae429c95214b4b4f0ba36762 (diff)
[FIX] web: boolean button terminology is optional
Make sure the widget won't crash when no `terminology` option is passed. Also for the translation extraction system to work, each literal term needs to be enclosed in its own _t() call: // No var trans = _t(term || "Default term"); // Yes var trans = _t(term) || _t("Default term"); The _t() function supports `undefined` arguments so the second form is equivalent to the first form at runtime, but supports proper term extraction. Finally, simplified the implementation a little bit, requiring `hover_true` and `hover_false` "action descriptions" to be provided explicity in custom terminologies. Previously we tried to reuse the values from `string_true` and `string_false`, but they describe a state rather than an action, so they are hardly ideal.
Diffstat (limited to 'addons/base_import_module/tests/test_module/static/src')
0 files changed, 0 insertions, 0 deletions