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'
|
_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)])
|
||||||
|
|||||||
@@ -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 -------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user