Reviewers: ,


Please review this at http://codereview.tryton.org/656003/

Affected files:
  M dashboard.py


Index: dashboard.py
===================================================================

--- a/dashboard.py
+++ b/dashboard.py
@@ -3,6 +3,7 @@
 from trytond.model import ModelView, ModelSQL, fields
 from trytond.transaction import Transaction
 from trytond.backend import TableHandler
+from trytond.pyson import Eval

 __all__ = ['DashboardAction']

@@ -20,6 +21,11 @@
                 ('res_model', '!=', None),
                 ('res_model', '!=', ''),
                 ('usage', '=', 'dashboard'),
+                # XXX copy ir.action rule to prevent access rule error
+                ['OR',
+ ('groups', 'in', Eval('context', {}).get('groups', [])),
+                    ('groups', '=', None),
+                ],
             ])

     @classmethod



--
--
[email protected] mailing list

--- You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to