Skip to content

Commit

Permalink
[FIX] web_advanced_search: TypeError: parent._trigger_up is not a fun…
Browse files Browse the repository at this point in the history
…ction (#6)

parent is required on BasicModel initialization.
  • Loading branch information
zamberjo authored and docker-odoo committed Oct 31, 2024
1 parent cb58b72 commit ff7c802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_advanced_search/static/src/js/relational.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ odoo.define("web_advanced_search.RelationalOwl", function (require) {
const AdvancedSearchWidget = FieldMany2One.extend(FieldManagerMixin, {
init: function (parent) {
const field = parent.__owl__.parent.field;
const model = new BasicModel(field.relation);
const model = new BasicModel(parent, {modelName: field.relation});
// Create dummy record with only the field the user is searching
const params = {
fieldNames: [field.name],
Expand Down

0 comments on commit ff7c802

Please sign in to comment.