Skip to content

Commit debb091

Browse files
committed
[FIX] dms_field: scope autocomputed directories by model
1 parent b5c4821 commit debb091

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

dms_field/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "DMS Field",
66
"summary": """
77
Create DMS View and allow to use them inside a record""",
8-
"version": "18.0.1.2.0",
8+
"version": "18.0.1.2.1",
99
"license": "LGPL-3",
1010
"author": "Creu Blanca,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/dms",

dms_field/static/src/views/dms_list/dms_list_controller.esm.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@ export function getDMSListControllerObject() {
440440
if (autocompute_directory) {
441441
result = Domain.and([
442442
result,
443-
new Domain([["res_id", "=", this.model.root.resId]]),
443+
new Domain([
444+
["res_id", "=", this.model.root.resId],
445+
["res_model", "=", this.sanitizeDMSModel(this.resModel)],
446+
]),
444447
]);
445448
} else {
446449
result = Domain.and([result, new Domain(domain || [])]);

0 commit comments

Comments
 (0)