changeset ab048e55ef07 in modules/company:default
details: https://hg.tryton.org/modules/company?cmd=changeset;node=ab048e55ef07
description:
        Remove optional value for fields_names in read

        issue7830
diffstat:

 res.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 353193b2a253 -r ab048e55ef07 res.py
--- a/res.py    Mon May 04 12:16:07 2020 +0200
+++ b/res.py    Tue May 12 17:35:43 2020 +0200
@@ -153,12 +153,12 @@
         return res
 
     @classmethod
-    def read(cls, ids, fields_names=None):
+    def read(cls, ids, fields_names):
         Company = Pool().get('company.company')
         user_id = Transaction().user
         if user_id == 0 and 'user' in Transaction().context:
             user_id = Transaction().context['user']
-        result = super(User, cls).read(ids, fields_names=fields_names)
+        result = super(User, cls).read(ids, fields_names)
         if (fields_names
                 and ((
                         'company' in fields_names

Reply via email to