From a103acb35c004422f4e1db900e76695659bd61f0 Mon Sep 17 00:00:00 2001 From: Houssine BAKKALI Date: Thu, 22 Aug 2019 16:15:00 +0200 Subject: [PATCH] [FIX] fix var used before assignement --- easy_my_coop/models/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easy_my_coop/models/account_invoice.py b/easy_my_coop/models/account_invoice.py index 87b9e26..08c8dad 100644 --- a/easy_my_coop/models/account_invoice.py +++ b/easy_my_coop/models/account_invoice.py @@ -71,6 +71,7 @@ class account_invoice(models.Model): def get_membership_vals(self): # flag the partner as an effective member # if not yet cooperator we generate a cooperator number + vals = {} if self.partner_id.member is False \ and self.partner_id.old_member is False: sequence_id = self.get_sequence_register()