Skip to content

Commit e01bb0d

Browse files
committed
[FIX] util.inherit_parents
Don't yield grand_parent multiple times.
1 parent daa5888 commit e01bb0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/inherit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,4 @@ def inherit_parents(cr, model, skip=(), interval="[)"):
121121
skip.add(parent)
122122
for grand_parent in inherit_parents(cr, parent, skip=skip, interval=interval):
123123
yield grand_parent
124+
skip.add(grand_parent)

0 commit comments

Comments
 (0)