365
365
def payment(self, record):
369
('name', '=', record['payment']),
370
('company_id', '=', self.backend_record.company_id.id),
368
373
assert method_ids, ("Payment method '%s' has not been found ; "
369
374
"you should create it manually (in Sales->"
370
375
"Configuration->Sales->Payment Methods" %