Permalink
Browse files

🚑 Comparing apples and oranges

ir.actions.report(287,) == 287
  • Loading branch information...
yelizariev committed Sep 24, 2018
1 parent 2c3cf5a commit 4c7881d10c87d2bfb56e9788e5a30048baf852f2
Showing with 8 additions and 1 deletion.
  1. +8 −1 web_website/models/website_dependent_mixin.py
@@ -63,7 +63,14 @@ def _force_default(self, field_name, prop_value):
if default_prop.company_id:
vals['company_id'] = None
if default_prop.get_by_record() != prop_value:
value = default_prop.get_by_record()
try:
# many2one field is an object here
value = value.id
except AttributeError:
pass
if value != prop_value:
vals['value'] = prop_value
default_prop.write(vals)

0 comments on commit 4c7881d

Please sign in to comment.