From 1ec7e3267a8e7cc0c96ccfa91c1124d77af48e1e Mon Sep 17 00:00:00 2001 From: Matteo Boscolo Date: Fri, 18 Oct 2024 07:47:22 +0200 Subject: [PATCH] FIX: bug on reference tree --- plm/models/ir_attachment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plm/models/ir_attachment.py b/plm/models/ir_attachment.py index ce10c2f4..c0248ba7 100755 --- a/plm/models/ir_attachment.py +++ b/plm/models/ir_attachment.py @@ -427,7 +427,9 @@ def _getRelatedPrTree(doc_id): return list(set(out)) @api.model - def getRelatedRfTree(self, doc_id, recursion=True, evaluated=[]): + def getRelatedRfTree(self, doc_id, recursion=True, evaluated=False): + if not evaluated: + evaluated=[] out = [] if not doc_id: logging.warning('Cannot get links from %r document' % (doc_id))