mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[13.0][FIX] web_advanced_search: fix error when clicking Search More in sales dashboard
This commit is contained in:
@@ -162,6 +162,10 @@ odoo.define("web_advanced_search", function(require) {
|
||||
tagName: "div",
|
||||
className: "x2x_container",
|
||||
attributes: {},
|
||||
custom_events: _.extend({}, FieldManagerMixin.custom_events, {
|
||||
load_optional_fields: "_onLoadOptionalFields",
|
||||
save_optional_fields: "_onSaveOptionalFields",
|
||||
}),
|
||||
|
||||
/**
|
||||
* @override
|
||||
@@ -314,6 +318,14 @@ odoo.define("web_advanced_search", function(require) {
|
||||
return this._field_widget.reset(this._get_record(), event);
|
||||
},
|
||||
|
||||
_onLoadOptionalFields: function(ev) {
|
||||
ev.stopPropagation();
|
||||
},
|
||||
|
||||
_onSaveOptionalFields: function(ev) {
|
||||
ev.stopPropagation();
|
||||
},
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user