diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-09-05 12:31:57 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-09-05 12:31:57 +0000 |
| commit | d0a4b20d3660c09b1ebe203125d57c9a533c7957 (patch) | |
| tree | 7bd90316d14145123a1296ea189c7fa1bb84a9f8 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 8ad3e221bb54633e82f17b32ba95a562f65ed360 (diff) | |
[FIX] auth_signup: prevent crash if http_routing not installed
Follow up of 269aa594111a152ad4b7714856ea745bfef57155
`request.lang` is only set on `http_routing` so it cannot be used here.
The fix here is the same as what was done on `web` on the mentioned commit.
To reproduce the issue:
- install any module, but not `http_routing`
- use reset password
- try to set a new password from the received link with token
A few notes about the mentioned commit:
- the `lang` `lazy_property` was removed because it was a string before and a
record now, and lazy_property cannot return a record
- the `lang` on the `request` is now a record
- the `lang` on the `context` is still a string
closes odoo/odoo#36468
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
