Skip to content

Commit

Permalink
🌹 spelling
Browse files Browse the repository at this point in the history
Co-Authored-By: KolushovAlexandr <kolushov@it-projects.info>
  • Loading branch information
Ivan Yelizariev and KolushovAlexandr committed Dec 21, 2018
1 parent 7dbd7e8 commit cae3aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_website/models/ir_property.py
Expand Up @@ -108,7 +108,7 @@ 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 {}
# if get returns False it caused an error on SQL request
# it's important, that website_id cannot be False -- otherwise, an error is raised on SQL request
website_id = self._context.get('website_id') or None
field = self.env[model]._fields[name]
field_id = self.env['ir.model.fields']._get(model, name).id
Expand Down

0 comments on commit cae3aaa

Please sign in to comment.