Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
When exporting fields via csv, they get an auto-generated xml id looking like __export__.res_partner_5. This can be used to reimport the fields with new values via csv.
But when I try to use the same xml id in an xml file:
<record model="res.partner" id="__export__.res_partner_5"> <field name="is_company" eval="False"/> </record>
the import fails, because OpenERP validates the xml id by checking if the module "__export__" (the part left of the dot), is an installed module (ir_module_module).
File "C:\Program Files (x86)\OpenERP\Server\server\.\openerp\tools\convert.py", line 256, in _test_xml_id AssertionError: The ID "__export__.res_partner_5" refers to an uninstalled module
Is this by design?
If entires have been created manually, OpenERP prefixes the
XML ID with
__export__. if they are exported. Now it depends what you want to accomplish with the import:
- If you want to create new lines, then you can simply remove the ID field.
- If you want to update existing entries, I think this is not possible
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/18/13, 3:59 PM|
|Seen: 2451 times|
|Last updated: 3/16/15, 8:10 AM|