|
|
@ -100,6 +100,9 @@ class AccountInvoice(models.Model): |
|
|
|
# we check if there is an open refund for this invoice. in this |
|
|
|
# case we don't run the process_subscription function as the |
|
|
|
# invoice has been reconciled with a refund and not a payment. |
|
|
|
# FIXME if the is a cancelled or a draft refund it takes it as open |
|
|
|
# check if at this stage the refund is open and in this case add |
|
|
|
# the state to the search domain |
|
|
|
refund = self.search([('type', '=', 'out_refund'), |
|
|
|
('origin', '=', invoice.move_name)]) |
|
|
|
|
|
|
|