diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index 8c3f7d09ada..bc189313291 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -433,7 +433,8 @@ var self = this; var on_write_callback = self.fields_view.arch.attrs.on_write; if (!on_write_callback) { return $.when(); } - var context = new instance.web.CompoundContext(self.dataset.get_context(), {'on_write_domain': self.dataset.domain}).eval(); + var on_write_domain = typeof self.dataset.get_domain === "function" && self.dataset.get_domain() || self.dataset.domain; + var context = new instance.web.CompoundContext(self.dataset.get_context(), {'on_write_domain': on_write_domain}).eval(); return this.dataset.call(on_write_callback, [source_record.get('id'), context]) .then(function (ids) { return $.when.apply(