Skip to content

Commit

Permalink
[IMP] base: Better implementation of 8166eae
Browse files Browse the repository at this point in the history
  • Loading branch information
tivisse committed Aug 16, 2018
1 parent b471595 commit 9aaa32b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions odoo/addons/base/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ def _search(self, args, offset=0, limit=None, order=None, count=False, access_ri

@api.model_create_multi
def create(self, vals_list):
users = super(Users, self).create(vals_list)
users.write({'customer': False})
users = super(Users, self.with_context(default_customer=False)).create(vals_list)
for user in users:
user.partner_id.active = user.active
if user.partner_id.company_id:
Expand Down

0 comments on commit 9aaa32b

Please sign in to comment.