Hi
I'm developing a module for Odoo where i have to import some data from external service and handle it internally. The imported data is related between them. I have defined the data models and developed the schema to import it from third party api.
I have defined the relation between data using Many2One relations, but the FK is defined using the field against the ID of the related model. As ID on Odoo are defined as Serial, it don't match with the right ID coming from external API. I have tried to define ID as integer and set the external API ID, but it gives me the error
TypeError: field 'id' cannot be assigned
There is any way that i can set a custom ID value to allow keep the external data relations?