[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.
Please register or sign in to comment