mirror of https://github.com/OCA/web.git
commit
75e967eb0f
|
@ -162,6 +162,10 @@ odoo.define("web_advanced_search", function(require) {
|
||||||
tagName: "div",
|
tagName: "div",
|
||||||
className: "x2x_container",
|
className: "x2x_container",
|
||||||
attributes: {},
|
attributes: {},
|
||||||
|
custom_events: _.extend({}, FieldManagerMixin.custom_events, {
|
||||||
|
load_optional_fields: "_onLoadOptionalFields",
|
||||||
|
save_optional_fields: "_onSaveOptionalFields",
|
||||||
|
}),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @override
|
* @override
|
||||||
|
@ -314,6 +318,14 @@ odoo.define("web_advanced_search", function(require) {
|
||||||
return this._field_widget.reset(this._get_record(), event);
|
return this._field_widget.reset(this._get_record(), event);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_onLoadOptionalFields: function(ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
|
},
|
||||||
|
|
||||||
|
_onSaveOptionalFields: function(ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue