Permalink
Browse files

🛡 web_website incomparable values int and bool

  • Loading branch information...
KolushovAlexandr committed Dec 21, 2018
1 parent ffffa2a commit 39a8ed3bf9ba07250ed7fb2586bdc871bda72425
Showing with 2 additions and 1 deletion.
  1. +2 −1 web_website/models/ir_property.py
@@ -108,7 +108,8 @@ def get_multi(self, name, model, ids):
# It has the same idea and structure, but sql request and set record value method are changed
if not ids:
return {}
website_id = self._context.get('website_id', None)
# if get returns False it caused an error on SQL request
website_id = self._context.get('website_id', None) or None
field = self.env[model]._fields[name]
field_id = self.env['ir.model.fields']._get(model, name).id
company_id = self._context.get('force_company') or self.env['res.company']._company_default_get(model, field_id).id or None

0 comments on commit 39a8ed3

Please sign in to comment.