From 54af34d7d0534a2c455d36433a7e14161e87e8f7 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 10 Jul 2018 14:26:55 +0200 Subject: [PATCH] [FIX] fix wrong evaluation --- 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 e905a5d..990beac 100644 --- a/easy_my_coop/models/account_invoice.py +++ b/easy_my_coop/models/account_invoice.py @@ -28,7 +28,7 @@ class account_invoice(models.Model): sub_reg_num = sequence_id.next_by_id() self.partner_id.write({'member':True,'old_member':False, 'cooperator_register_number':int(sub_reg_num)}) - elif self.partner_id.old_member == False: + elif self.partner_id.old_member == True: self.partner_id.write({'member':True,'old_member':False}) else: mail_template_name = 'Share Increase - Payment Received Confirmation - Send By Email'