summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2016-08-31 15:54:24 +0200
committerDavid Monjoie <dmo@odoo.com>2016-09-02 12:08:42 +0200
commitfc53108c65822160dd22eefc0d6da5e6ea9d5939 (patch)
tree19b5c838b2f402f1950c9fb594245a0ff2c649e3 /addons/web/static/src
parent4b5398f53aeb877b46165e5d7b73565e1caddae1 (diff)
[FIX] base: fix tz onchange in user preferences view
Since res.users is an inherits of res.partner, the onchange that should be triggered by tz to update tz_offset is not triggered. Considering tz_offset is never used on res_partner and is only used by the timezone_mistmatch widget which compares the offset with the one of the browser timezone, which only makes sense if you are a user, we could have completely moved this field on res.users. That being said, it feels strange to have a tz field defined on partner but having to be a user to compute the actual timezon offset, which doesn't need any additional information. For this reason, we chose to duplicate it until either we decide to truly move it in the next version, or the orm is fixed to correctly trigger the onchanges of the inherits models. This patch could be applied in 9.0 if needed, but considering nobody ever complained about this issue and the "workaround" nature of this fix, we decided to apply it in master only.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions