why does orm load() method mark external ids as noupdate=False by default ?
In the process of loading big amount of data into tables, I noticed that when restarting the server updating my custom module, the data previously entered was deleted from the database automatically !
I use the
load() method and for each record I specified an
xml_id (external id) so that running the same import twice would only update records. When looking at the the external ids created, I noticed that
the noupdate field was automatically set to False.
Those records are therefore deleted when updating the module, as part of the module update protocol.
Can anyone help on how to intruct the load() method to forcecreate / set no update = True on the xml_ids of my newly created records ?