Browse Source

Merge pull request #1484 from akretion/10-fix-onchange-helper

[FIX] don't remove computed fields with inverse method of the onchange values
pull/1491/head
Moises Lopez - https://www.vauxoo.com/ 6 years ago
committed by GitHub
parent
commit
8e46bd2990
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      onchange_helper/models/models.py

2
onchange_helper/models/models.py

@ -47,5 +47,5 @@ class Base(models.AbstractModel):
return {
f: v for f, v in all_values.iteritems()
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)}
Loading…
Cancel
Save