mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Call add payment method
This commit is contained in:
@@ -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)])
|
||||
|
||||
@@ -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 -------------------
|
||||
|
||||
Reference in New Issue
Block a user