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.
I have extended existing model (product.uom) in a module, and I would like to initialize data to a new field in a xml import using external id to do that, but the import fails to bring data to the new field. No error is raised, just no data is loaded.
Is there some mechanism that "protects" records created in another module from being updated by another module, or should I be able to update existing records using normal xml import?
to update record from python code, a workaround may be to run python code at install/uninstall time as explained there
then, as you'll have code that runs at install time, you can retrieve needed record using it's xml id (or external id as it often referred) in python code and update it's fields per your needs.
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: 11/2/15, 7:00 AM|
|Seen: 1252 times|
|Last updated: 11/2/15, 10:54 AM|