diff --git a/dms_field/static/src/js/base/dms_tree_controller.js b/dms_field/static/src/js/base/dms_tree_controller.js index 5196afa6e..8e1b3d97e 100644 --- a/dms_field/static/src/js/base/dms_tree_controller.js +++ b/dms_field/static/src/js/base/dms_tree_controller.js @@ -39,7 +39,7 @@ odoo.define("dms.DmsTreeController", function (require) { ["child_directory_ids", "in", params.initialState.res_ids], ]; } else { - storage_domain = [["model_ids.model", "=", model]]; + storage_domain = [["model", "=", model]]; autocompute_directory = true; show_storage = false; }