changeset 2e5cee4da2b3 in modules/dashboard:default
details: https://hg.tryton.org/modules/dashboard?cmd=changeset;node=2e5cee4da2b3
description:
Remove implicit fields names in Dashboard.read
issue7830
diffstat:
ir.py | 4 ++--
tests/test_dashboard.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r f2416c64f5b2 -r 2e5cee4da2b3 ir.py
--- a/ir.py Mon Oct 01 12:37:01 2018 +0200
+++ b/ir.py Thu Dec 20 21:21:44 2018 +0100
@@ -116,8 +116,8 @@
return arch
@classmethod
- def read(cls, ids, fields_names=None):
- res = super(View, cls).read(ids, fields_names=fields_names)
+ def read(cls, ids, fields_names):
+ res = super(View, cls).read(ids, fields_names)
if Transaction().user == 0:
return res
dashboard_id = cls.dashboard_id()
diff -r f2416c64f5b2 -r 2e5cee4da2b3 tests/test_dashboard.py
--- a/tests/test_dashboard.py Mon Oct 01 12:37:01 2018 +0200
+++ b/tests/test_dashboard.py Thu Dec 20 21:21:44 2018 +0100
@@ -16,7 +16,7 @@
pool = Pool()
View = pool.get('ir.ui.view')
dashboard_id = View.dashboard_id()
- result, = View.read([dashboard_id])
+ result, = View.read([dashboard_id], ['arch'])
self.assertIn('board', result['arch'])