|
|
@ -98,7 +98,20 @@ class DonationDonation(models.Model): |
|
|
|
('deposited_in_accounting', 'Deposited in accounting') |
|
|
|
], |
|
|
|
compute='_compute_payment_state', store=True) |
|
|
|
|
|
|
|
|
|
|
|
tax_receipt_option = fields.Selection( |
|
|
|
[ |
|
|
|
("none", "None"), |
|
|
|
("each", "For Each Donation"), |
|
|
|
("annual", "Annual Tax Receipt"), |
|
|
|
], |
|
|
|
string="Tax Receipt Option", |
|
|
|
states={"done": [("readonly", True)]}, |
|
|
|
index=True, |
|
|
|
tracking=True, |
|
|
|
default='annual' |
|
|
|
) |
|
|
|
|
|
|
|
@api.onchange("recurring_template") |
|
|
|
def recurring_template_change(self): |
|
|
|
res = {"warning": {}} |
|
|
|