Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0a70c11

Browse files
zamberjodocker-odoo
authored and
docker-odoo
committedMar 6, 2025·
[FIX] web_advanced_search: TypeError: parent._trigger_up is not a function (#6)
parent is required on BasicModel initialization.
1 parent 5940c12 commit 0a70c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎web_advanced_search/static/src/js/relational.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ odoo.define("web_advanced_search.RelationalOwl", function (require) {
1414
const AdvancedSearchWidget = FieldMany2One.extend(FieldManagerMixin, {
1515
init: function (parent) {
1616
const field = parent.__owl__.parent.field;
17-
const model = new BasicModel(field.relation);
17+
const model = new BasicModel(parent, {modelName: field.relation});
1818
// Create dummy record with only the field the user is searching
1919
const params = {
2020
fieldNames: [field.name],

0 commit comments

Comments
 (0)
Please sign in to comment.