Browse Source

[10.0][FIX] onchange_helper: do not reevaluate values of not stored fields in dirty mode

10.0
Cédric Pigeon 5 years ago
parent
commit
bc78b79628
  1. 2
      onchange_helper/models/models.py

2
onchange_helper/models/models.py

@ -40,6 +40,8 @@ class Base(models.AbstractModel):
continue
dirties.append(field_name)
for field_name, field in modified_record._fields.items():
if not field.store:
continue
new_value = modified_record[field_name]
if field.type not in ("one2many", "many2many"):
continue

Loading…
Cancel
Save