Hello
I have many2many field :
capture_ref = fields.Many2many('affichage.information', string="Numéro de série", required=True)
And i want to get the record which have 'reference','=',self.capture_ref.reference :
rec = self.env['affichage.information'].search([('reference','=',self.capture_ref.reference)])
I get this erreur : ValueError: Expected singleton: affichage.information(41, 42)