Permalink
Browse files

🛡 integer is incomparable with bool

  • Loading branch information...
KolushovAlexandr committed Dec 19, 2018
1 parent 5986e46 commit ea9828ba72bd5f404accf9467e15883698c64b21
Showing with 1 addition and 1 deletion.
  1. +1 −1 web_website/models/ir_property.py
@@ -111,7 +111,7 @@ def get_multi(self, name, model, ids):
website_id = self._context.get('website_id', 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
company_id = self._context.get('force_company') or self.env['res.company']._company_default_get(model, field_id).id or None

if field.type == 'many2one':
comodel = self.env[field.comodel_name]

0 comments on commit ea9828b

Please sign in to comment.