215c4a6b5d71c56315f09ce388a8316b76a3a23e
Import a list of partners with their addresses. The state_id field is usually filled with the state codes. E.g. 'CA' is used for California, but also for Cádiz (Spain), etc. The import function (db_id_for) uses a name_search on the res.country.state, and takes the first matching result. It follows that the state does not necessarily match the country. Therefore we add a _check_import_consistency in the create. Here we check that the country matches the state's country, try to find a correct match, and if we can't we put the state to False. Note that if the country is not set both fields will end up set to False: this is because only a state would mean using a code could give an abitrary country. opw 1943904 closes odoo/odoo#31599 Signed-off-by: Nans Lefebvre (len) <len@odoo.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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%