How to add a value to a many2one or many2many field?
if electronic not in self.inbound_payment_method_ids:
self.inbound_payment_method_ids = [(4, electronic.id)]
if electronic not in self.inbound_payment_method_ids:
self.inbound_payment_method_ids = [(4, electronic.id)]