Fix wrong parent test in create_leveling
issue3246 review920002
This commit is contained in:
1 parent
15836382fe
commit
2b54f0cd5a
1 file changed
+3
-4
@@ -522,9 +522,8 @@ class Work:
|
||||
|
||||
yield sibling, delay
|
||||
|
||||
parent = self.parent and self.parent.id or None
|
||||
siblings = self.search([
|
||||
('parent', '=', parent.id)
|
||||
('parent', '=', self.parent.id if self.parent else None)
|
||||
])
|
||||
|
||||
refkey = get_key(self)
|
||||
@@ -541,8 +540,8 @@ class Work:
|
||||
'back_leveling_delay': delay,
|
||||
})
|
||||
|
||||
if parent:
|
||||
parent.compute_dates()
|
||||
if self.parent:
|
||||
self.parent.compute_dates()
|
||||
|
||||
@classmethod
|
||||
def write(cls, works, values):
|
||||
|
||||
Reference in new issue
Block a user