Use a list of ids to search children when opening invoice

issue9923
review343101002
This commit is contained in:
Sergi Almacellas Abellana committed 2020-12-08 17:36:30 +01:00
1 parent f4dc6a5299
commit 4473d6ce76
1 file changed
+1 -1
+1 -1
View File
@@ -682,7 +682,7 @@ class OpenInvoice(Wizard):
def do_open_(self, action):
works = self.model.search([
('parent', 'child_of', map(int, self.records)),
('parent', 'child_of', list(map(int, self.records))),
])
invoice_ids = set()
for work in works: