mirror of https://github.com/OCA/web.git
[FIX] web_advanced_search: Change management of relational fields
parent
f856c7daf5
commit
89e8bd1562
|
@ -168,8 +168,8 @@ odoo.define("web_advanced_search", function(require) {
|
||||||
// Create dummy record with only the field the user is searching
|
// Create dummy record with only the field the user is searching
|
||||||
const params = {
|
const params = {
|
||||||
fieldNames: [this.field.name],
|
fieldNames: [this.field.name],
|
||||||
modelName: this.dataset.model,
|
modelName: this.field.relation,
|
||||||
context: this.dataset.context,
|
context: this.field.context,
|
||||||
type: "record",
|
type: "record",
|
||||||
viewType: "default",
|
viewType: "default",
|
||||||
fieldsInfo: {
|
fieldsInfo: {
|
||||||
|
@ -203,7 +203,7 @@ odoo.define("web_advanced_search", function(require) {
|
||||||
start: function() {
|
start: function() {
|
||||||
const result = this._super.apply(this, arguments);
|
const result = this._super.apply(this, arguments);
|
||||||
// Render the initial widget
|
// Render the initial widget
|
||||||
result.done($.proxy(this, "show_inputs", $("<input value='='/>")));
|
result.then($.proxy(this, "show_inputs", $("<input value='='/>")));
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue