02fbc24024d772e0a351e94de0ea39fa657adb53
With commit odoo/odoo@83ffe8b we ensured that while creating a child contact, it takes language from its parent by default if any, otherwise falls back to DB lang. The fix was done with help of `default_get` method. However after merge of odoo/odoo#55995 `default_get` is now called through the onchange for o2m fields. Now we don't get the default value of `parent_id` here which re-introduced the bug. This commit fixes the behavior by setting the language from onchange while creating the child contact and thus (once again) making the language from parent contact prevail on DB lang. We also re-use default_lang coming from parent in form view, which partially reverts odoo/odoo@83ffe8b . TaskID-2416922 closes odoo/odoo#72960 X-original-commit: 4d9b85bd07e487e7843dc458332dede36c2889c2 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%