I Have an Module which is import the external data. I want to add that external id in my selected model's unique field.
model_id = fields.Many2one('ir.model', 'Model', required=True)
if i select any model than external id should be store in unique field. here,how to create unique field for every selected model.
on button click i have import external data in selected model here problem is that i don't have any field to store external id. I want to add that external id in my selected model's unique field.