Skip to content

Commit

Permalink
🛡️ integer is incomparable with bool
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr committed Dec 19, 2018
1 parent 5986e46 commit ea9828b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_website/models/ir_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ea9828b

Please sign in to comment.