changeset 6ac548bdbbbf in modules/sale_complaint:5.2
details:
https://hg.tryton.org/modules/sale_complaint?cmd=changeset;node=6ac548bdbbbf
description:
Use Action class from the pool
issue9179
review305111002
(grafted from a72b28d241f4a976913674b349968c13f3576d50)
diffstat:
complaint.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 08177085810b -r 6ac548bdbbbf complaint.py
--- a/complaint.py Sun Mar 01 21:03:31 2020 +0100
+++ b/complaint.py Sat Mar 28 13:08:20 2020 +0100
@@ -281,6 +281,8 @@
@ModelView.button
@Workflow.transition('done')
def process(cls, complaints):
+ pool = Pool()
+ Action = pool.get('sale.complaint.action')
results = defaultdict(list)
actions = defaultdict(list)
for complaint in complaints: