mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Merge pull request #485 from hbrunn/8.0-web_x2m_filter
[FIX] spurious dirty flag
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user