Files
public/directive_common/models/account_payment.py

17 lines
549 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from odoo import models
class AccountPayment(models.Model):
_name = 'account.payment'
_inherit = ["account.payment", "directive.mixin"]
def action_bank_gateway_response(self, payload: dict):
for pay in self:
bank_ref = f"REF-{pay.id}-X99"
pay.message_post(
body=f"Bank Gateway: Платеж отправлен в банк.<br/>"
f"Bank Reference: {bank_ref}<br/>"
f"Комиссия агента: 0.00 у.е."
)
return True