From bdb3b582a43868c84e7759231160ff72895d58f2 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 17 Nov 2016 11:20:01 +0100 Subject: [PATCH] [FIX] spurious dirty flag --- web_x2m_filter/static/src/js/web_x2m_filter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web_x2m_filter/static/src/js/web_x2m_filter.js b/web_x2m_filter/static/src/js/web_x2m_filter.js index 21d2fa09..dc5efcc6 100644 --- a/web_x2m_filter/static/src/js/web_x2m_filter.js +++ b/web_x2m_filter/static/src/js/web_x2m_filter.js @@ -49,9 +49,12 @@ openerp.web_x2m_filter = function(instance) ).all() .then(function(records) { + var original = o2m._inhibit_on_change_flag; + o2m._inhibit_on_change_flag = true; o2m.dataset.alter_ids(_.map(records, function(x) { return x.id; })); + o2m._inhibit_on_change_flag = original; }); }; instance.web.form.FieldOne2Many.include({