Skip to content

Commit

Permalink
Merge pull request OCA#2 from merchise-autrement/9.0-supress-recompute
Browse files Browse the repository at this point in the history
[FIX] models: Fix blacklisting of fields when `recs` is false.
  • Loading branch information
NL66278 authored May 11, 2017
2 parents 82c0fdf + 2dd1af3 commit 668453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5902,9 +5902,9 @@ def recompute(self):
# determine the fields to recompute
fs = self.env[field.model_name]._field_computed[field]
# OpenUpgrade start:
field_key = '%s' % field
if recs:
blacklist = recs[0]._openupgrade_recompute_fields_blacklist
field_key = '%s' % field
model_name, field_name = field_key.rsplit('.', 1)
if field_name in blacklist:
_logger.info(
Expand Down

0 comments on commit 668453b

Please sign in to comment.