This commit adds /donation/* routes to perform the donation: - /pay: shows the form with the contact details and donation details - /transaction: creates the partner_id if missing and executes the transaction - /confirm: displays the payment success page PR-63133 task-2398403 Part-of: odoo/odoo#63133
11 lines
339 B
Python
11 lines
339 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountPayment(models.Model):
|
|
_inherit = 'account.payment'
|
|
|
|
is_donation = fields.Boolean(string="Is Donation", related="payment_transaction_id.is_donation", help="Is the payment a donation")
|