Permalink
Browse files

Merge pull request #708 from KolushovAlexandr/11.0-web_website-issues…

…_with_tests-2

🚑 mail sending issue
  • Loading branch information...
yelizariev committed Dec 27, 2018
2 parents 1390731 + 2593456 commit d1ce509e252daa594889f40d8b5a63d706ffdea9
Showing with 1 addition and 1 deletion.
  1. +1 −1 web_website/models/ir_property.py
@@ -109,7 +109,7 @@ def get_multi(self, name, model, ids):
if not ids:
return {}
# 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
website_id = self._get_website_id() 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 d1ce509

Please sign in to comment.