changeset ee943612030a in modules/project_invoice:5.8
details:
https://hg.tryton.org/modules/project_invoice?cmd=changeset;node=ee943612030a
description:
Use a list of ids to search children when opening invoice
issue9923
review343101002
(grafted from 8fc4b0886df4ec5c8b3ceb1fb6cf5856bf61bf2d)
diffstat:
project.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f6560f4f0e4e -r ee943612030a project.py
--- a/project.py Fri Dec 11 15:44:03 2020 +0100
+++ b/project.py Tue Dec 08 17:36:30 2020 +0100
@@ -662,7 +662,7 @@
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: