summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2017-03-16 11:40:56 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitef2d5c06cad540690c31e0ac4bb11abf5f39d859 (patch)
tree007936f4fc64e04a7273bc431bafca279477f292 /addons/web/static/src/js/fields/basic_fields.js
parent38300a9bb810580f800afd053973e7a33d2fe663 (diff)
[IMP] web: mock web.config in place like session
Some fields react differently depending on the values in web.config. For example, the phone field will display a clickable phone link if it detects a small screen (e.g. a smartphone) but won't do it on a bigger screen. To be able to test fields which react differently depending on the values in web.config, we need a way to mock it. To do that, we modify web.config in place with the value given for the test, and we put back the original config when the field widget is destroyed.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions