Browse Source

[FIX] call set_effective function in case of deferred payment in the

post_process_confirm_paid
pull/1/head
houssine 8 years ago
parent
commit
bafd371b1f
  1. 2
      easy_my_coop_online_payment/models/coop.py

2
easy_my_coop_online_payment/models/coop.py

@ -16,7 +16,7 @@ class AccountInvoice(models.Model):
_inherit = 'account.invoice' _inherit = 'account.invoice'
def post_process_confirm_paid(self, effective_date): def post_process_confirm_paid(self, effective_date):
if self.payment_type == 'deferred':
if self.subscription_request.payment_type == 'deferred':
self.set_cooperator_effective(effective_date) self.set_cooperator_effective(effective_date)
return True return True
Loading…
Cancel
Save