changeset c32da14065ba in modules/project_invoice:default
details:
https://hg.tryton.org/modules/project_invoice?cmd=changeset;node=c32da14065ba
description:
Add model, record and records attribute on Wizard
issue9421
review309861012
diffstat:
project.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (16 lines):
diff -r 684c694a04b2 -r c32da14065ba project.py
--- a/project.py Mon May 04 12:22:57 2020 +0200
+++ b/project.py Tue Jul 07 23:56:10 2020 +0200
@@ -661,10 +661,8 @@
open_ = StateAction('account_invoice.act_invoice_form')
def do_open_(self, action):
- pool = Pool()
- Work = pool.get('project.work')
- works = Work.search([
- ('parent', 'child_of', Transaction().context['active_ids']),
+ works = self.model.search([
+ ('parent', 'child_of', map(int, self.records)),
])
invoice_ids = set()
for work in works: