How to add a value to a many2one or many2many field?

  • language
      English
  • type
      technical
  • info created for version
      14.0
  • mvc
      Python (models/controllers)
Add to Cart

if electronic not in self.inbound_payment_method_ids:
    self.inbound_payment_method_ids = [(4, electronic.id)]