Browse Source

[FIX] don't remove computed fields with inverse method of the onchange values

pull/1461/head
Benoit 6 years ago
committed by sbejaoui
parent
commit
176916f536
  1. 2
      onchange_helper/models/base.py

2
onchange_helper/models/base.py

@ -64,6 +64,6 @@ class Base(models.AbstractModel):
return { return {
f: v f: v
for f, v in all_values.items() for f, v in all_values.items()
if not self._fields[f].compute
if not (self._fields[f].compute and not self._fields[f].inverse)
and (f in values or f in new_values or f in onchange_fields) and (f in values or f in new_values or f in onchange_fields)
} }
Loading…
Cancel
Save