From 1ce04d79cfd755ba46a5c9d93864ff01b493ad7a Mon Sep 17 00:00:00 2001 From: Benoit Date: Mon, 21 Jan 2019 14:06:40 +0100 Subject: [PATCH] [FIX] don't remove computed fields with inverse method of the onchange values --- onchange_helper/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onchange_helper/models/models.py b/onchange_helper/models/models.py index 10ccee084..3c40ec23e 100644 --- a/onchange_helper/models/models.py +++ b/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)}