summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/fields/relational_fields.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js
index c9e6f218895..e7cd2e1eebf 100644
--- a/addons/web/static/src/js/fields/relational_fields.js
+++ b/addons/web/static/src/js/fields/relational_fields.js
@@ -1191,9 +1191,13 @@ var FieldMany2Many = FieldX2Many.extend({
*
* @override
* @private
+ * @param {OdooEvent|MouseEvent} ev this event comes either from the 'Add
+ * record' link in the list editable renderer, or from the 'Create' button
+ * in the kanban view
*/
- _onAddRecord: function () {
+ _onAddRecord: function (ev) {
var self = this;
+ ev.stopPropagation();
var domain = this.record.getDomain({fieldName: this.name});