Browse Source

[FIXME] add fixme message

pull/86/head
houssine 4 years ago
parent
commit
9ed04d95f7
  1. 3
      easy_my_coop/models/account_invoice.py

3
easy_my_coop/models/account_invoice.py

@ -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)])

Loading…
Cancel
Save