I can import comma-delimited data (CSV) through the administration pages into most models. This process processes external identifiers so that data can be added or modified accordingly in subsequent imported CSV files. This is a manic action.
Through the API, you can create and modify the same records as external identifiers. However, this requires a lot of logic that would otherwise be handled by the CSV importer, which must be manually encoded, in an external application that uses the API to enter data. Clicking data through the API can be automated.
Is it possible to use an API (so there is no need to make any changes to the Odoo code) to pop CSV data (so that the logic for inserting / updating / relations / external identifiers, etc. is processed by Odoo)? This will be a kind of hybrid approach, and I try to avoid the need to create import modules in Odoo.
Edit: The "external ID" is often referred to as the "XML ID". I think this is terminology that is stuck from earlier versions of OpenERP, and not with anything specific related to XML.
Edit
This page describes the load () function, which pushes CSV-like data through a pipeline to load it into the system:
http://openerp-server.readthedocs.org/en/latest/06_misc_import.html
I cannot figure out how to translate the summary on this page into an operation via the API, if it is really possible. I assume that I will need an interface (entry point), model, method ( load() , probably) and some additional parameters, but the details do not exceed me.
Jason source share