From 3330df2f917533e5c71f8dd567ce3179761c5ecc Mon Sep 17 00:00:00 2001 From: Houssine BAKKALI Date: Tue, 25 Jun 2019 14:53:43 +0200 Subject: [PATCH] [FIX] company_email doesn't exist on partner The code has been moved from subscription request and this should have been removed previously when moving the code --- easy_my_coop/models/account_invoice.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/easy_my_coop/models/account_invoice.py b/easy_my_coop/models/account_invoice.py index 028575d..87b9e26 100644 --- a/easy_my_coop/models/account_invoice.py +++ b/easy_my_coop/models/account_invoice.py @@ -24,8 +24,6 @@ class account_invoice(models.Model): def create_user(self, partner): user_obj = self.env['res.users'] email = partner.email - if partner.is_company: - email = partner.company_email user = user_obj.search([('login', '=', email)]) if not user: