[FIX] Call add payment method

This commit is contained in:
Dario Lodeiros
2019-08-12 12:02:27 +02:00
parent c4e6fcb968
commit 141525de90
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class AccountPayment(models.Model):
_inherit = 'account.payment'
@api.model
def _rm_add_payment(self, code, payment):
def rm_add_payment(self, code, payment):
reservation = self.env['hotel.reservation'].search([
'|', ('localizator', '=', code),
('folio_id.name', '=', code)])

View File

@@ -103,7 +103,7 @@ class RoomMatik(models.Model):
@api.model
def rm_add_payment(self, code, payment):
apidata = self.env['account.payment']
return apidata.sudo().rm_checkin_partner(code, payment)
return apidata.sudo().rm_add_payment(code, payment)
# Debug Stop -------------------
# import wdb; wdb.set_trace()
# Debug Stop -------------------