[FIX] Call add payment method

This commit is contained in:
Dario Lodeiros
2019-08-12 12:02:27 +02:00
parent 9c45badee8
commit 19549baedb
2 changed files with 2 additions and 2 deletions

View File

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

View File

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