Permalink
Browse files

🚑 change the type of argument passed

  • Loading branch information...
trojikman committed Jan 27, 2019
1 parent 9948461 commit 8cc477c937926828677e1f3480d8dc66b9db9dc9
Showing with 1 addition and 1 deletion.
  1. +1 −1 web_website/models/res_users.py
@@ -52,7 +52,7 @@ def _compute_backend_website_ids(self):

def write(self, vals):
if 'company_id' in vals and 'backend_website_id' not in vals:
websites = self._search_company_websites(vals['company_id'])
websites = self._search_company_websites([vals['company_id']])
if len(websites) == 1:
vals['backend_website_id'] = websites.id
else:

0 comments on commit 8cc477c

Please sign in to comment.