Permalink
Browse files

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

…_with_tests

🛡 web_website incomparable values int and bool
  • Loading branch information...
yelizariev committed Dec 21, 2018
2 parents ffffa2a + cae3aaa commit 1390731bfc26e2de2ee472c40e1034433b23ac41
Showing with 7 additions and 2 deletions.
  1. +1 −1 web_website/__manifest__.py
  2. +4 −0 web_website/doc/changelog.rst
  3. +2 −1 web_website/models/ir_property.py
@@ -6,7 +6,7 @@
"category": "Hidden",
# "live_test_url": "",
"images": [],
"version": "11.0.3.0.1",
"version": "11.0.3.0.2",
"application": False,

"author": "IT-Projects LLC, Ivan Yelizariev",
@@ -1,3 +1,7 @@
`3.0.2`
-------
- **Fix:** Error related to incorrect SQL request

`3.0.1`
-------
- **Fix:** Incorrect website priority after odoo updates https://github.com/odoo/odoo/commit/b6d32de31e0e18a506ae06dc27561d1d078f3ab1
@@ -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)
# 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
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 1390731

Please sign in to comment.