Browse Source

[FIX] company_email doesn't exist on res partner

pull/8/head
houssine 6 years ago
parent
commit
83ec48edfe
  1. 2
      easy_my_coop/models/account_invoice.py

2
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:

Loading…
Cancel
Save