changeset 2a505890397a in modules/project_invoice:default
details: 
https://hg.tryton.org/modules/project_invoice?cmd=changeset&node=2a505890397a
description:
        Use data res_id instead of modifying action domain

        issue10471
        review358151003
diffstat:

 project.py |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 4304d19508b4 -r 2a505890397a project.py
--- a/project.py        Mon May 03 16:01:11 2021 +0200
+++ b/project.py        Sun Jun 06 09:37:26 2021 +0200
@@ -15,7 +15,7 @@
 from trytond.i18n import gettext
 from trytond.model import ModelSQL, ModelView, fields
 from trytond.pool import PoolMeta
-from trytond.pyson import Eval, Bool, If, Id, PYSONEncoder
+from trytond.pyson import Eval, Bool, If, Id
 from trytond.pool import Pool
 from trytond.transaction import Transaction
 from trytond.wizard import Wizard, StateAction
@@ -698,8 +698,4 @@
             if work.invoiced_progress:
                 for progress in work.invoiced_progress:
                     invoice_ids.add(progress.invoice_line.invoice.id)
-        encoder = PYSONEncoder()
-        action['pyson_domain'] = encoder.encode(
-            [('id', 'in', list(invoice_ids))])
-        action['pyson_search_value'] = encoder.encode([])
-        return action, {}
+        return action, {'res_id': list(invoice_ids)}

Reply via email to