I have models A and B:
class A (models.Model):
_name = 'example.a'name = fields.Char(string="Model A")
b_id = fields.Many2one('example.b', string='Model B')
class B (models.Model):
_name = 'example.b'
name = fields.Char(string="Model B")
a_ids = fields.One2many('example.a', 'b_id', string="Models A")
I want to Add an item in a_ids from the existing records of A, not create new ones, how can this be achieved ? the autogenerated view for a_ids field only allows me to insert new records everytime I click Add an item, How can I show a list of existing records from the Many2One b_id field in model A. I though odoo will automagically show me a list of such values since the declaration of the field explicitly names the field in the Many2One relationship, thanks in advance