From 3dd4c371fb160d9ed2dc15a8d0867633493fdcbd Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 30 Jan 2018 14:49:07 +0100 Subject: [PATCH] [FIX] fix typo in variable name --- easy_my_coop/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/account_invoice.py b/easy_my_coop/models/account_invoice.py index 4093849..9d76eff 100644 --- a/easy_my_coop/models/account_invoice.py +++ b/easy_my_coop/models/account_invoice.py @@ -23,7 +23,7 @@ class account_invoice(models.Model): mail_template_name = 'Payment Received Confirmation - Send By Email' # if not yet cooperator we generate a cooperator number - if self.partner_id.member == False and self.partner_id.old_number == False: + if self.partner_id.member == False and self.partner_id.old_member == False: sequence_id = obj_sequence.search([('name','=','Subscription Register')])[0] sub_reg_num = sequence_id.next_by_id() self.partner_id.write({'member':True,'old_member':False,