diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-06-04 12:00:10 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-06-04 12:00:10 +0000 |
| commit | ae48324aee47aa4851e313671241970a5b8528b5 (patch) | |
| tree | b52ccd9e53e5021a1d366f22f71b088feb07d66b /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 51a535991fba335607728061f9a3439d56331890 (diff) | |
[FIX] payment: use a better fallback when no partner language
In case the partner has no language (not a required field), the fallback on the
payment transaction was 'en_US'
en_US may however be an invalid choice for partner_lang field as it is
a selection field that only has the activated languages (result of the call to
self.env['res.lang'].get_installed())
A database created in a different language does not have en_US activated
Fallback on user language instead of False as the partner_lang is expected by
some payment providers and may produce an error is empty
Fixes odoo/odoo#33750
closes odoo/odoo#33870
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
