summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/abstract_field.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/fields/abstract_field.js')
-rw-r--r--addons/web/static/src/js/fields/abstract_field.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js
index 3d7a827ff13..d50fd493521 100644
--- a/addons/web/static/src/js/fields/abstract_field.js
+++ b/addons/web/static/src/js/fields/abstract_field.js
@@ -207,6 +207,17 @@ var AbstractField = Widget.extend({
this._reset(record, event);
return this._render();
},
+ /**
+ * @override performModelRPC from ServicesMixin
+ * Adds the dataPointID to the option parameter so that the BasicController
+ * (the FieldManagerMixin) knows the context to bind to the rpc call.
+ */
+ performModelRPC: function (model, method, args, kwargs, options) {
+ return this._super(model, method, args, kwargs, _.extend({
+ dataPointID: this.dataPointID,
+ fieldName: this.name,
+ }, options || {}));
+ },
//--------------------------------------------------------------------------
// Private