Hello gang,
Somebody write to me :
if you delete a record in a xml file and you update the module, the record will be deleted in database if you have not parameter noupdate="1" in <data>
I understand this. But I have a question.
Example :
- I create a record id=mycustom.stock_location_a in my custom module;
- I upgrade the module mycustom in my odoo;
- I check in Warehouse->Locations, the new record (stock_location_a) is there;
- The external ID (mycustom.stock_location_a) is of course created in ir.model.data.
- Now, I remove the record id=mycustom.stock_location_a in my XML.
- I upgrade mycustom again.
- Here, I suppose that Odoo will erase the record mycustom.stock_location_a
Here is my questions :
- But how Odoo can decide to delete the record? May be I have put the XML record in a other file or an other module, no????
- Will Odoo delete mycustom.stock_location_a?
- Which conditions before to delete it from Odoo?