[FIX]pms: post payment message folio

This commit is contained in:
Darío Lodeiros
2021-09-26 15:04:20 +02:00
committed by Eric Antones
parent eaad749851
commit 88a2b38051

View File

@@ -1494,13 +1494,21 @@ class PmsFolio(models.Model):
date=date,
)
self.env["account.bank.statement.line"].sudo().create(line)
self.message_post(
folio.message_post(
body=_(
"""Payment: <b>%s</b> by <b>%s</b>""",
amount,
journal.display_name,
)
)
for reservation in folio.reservation_ids:
reservation.message_post(
body=_(
"""Payment: <b>%s</b> by <b>%s</b>""",
amount,
journal.display_name,
)
)
return True
def open_wizard_several_partners(self):