diff options
| author | David Beguin <dbe@odoo.com> | 2020-03-20 08:48:20 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2020-03-23 09:57:09 +0000 |
| commit | 83ffe8b50b2a2a65e2f19450e5ef134c0040dfb7 (patch) | |
| tree | 807afe518e646ab598cc33b56e2834e52b1cd6f6 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | fba4517567b9bd2a11b9d1a4e464e79e197a5577 (diff) | |
[FIX] base: make parent contact lang prevail on DB lang
Purpose
=======
If a user specifies a language on a company (res.partner), chances are children
of said company will speak the same language. It is at least most likely than
having them speak the default DB language.
Specifications
==============
If a language is set on the parent, the child contact created from the o2m
should have by default the same language.
Before this commit, we set lang in the context of the o2m field but it not
taken into account and is overriden by the default DB lang.
After this commit, the default lang value is forced in the default get to
be the same than the parent, if any. Else, we fallback to the default DB lang.
Link
====
Task ID: 2210350
PR #48077
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
