summaryrefslogtreecommitdiff
path: root/addons/project/models/project.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-06-19 13:02:34 +0000
committerMartin Trigaux <mat@odoo.com>2020-08-17 09:08:23 +0000
commitd5c16492397047ceb97a0879aa61f068a0eeeca8 (patch)
treeea2de631dcabee0a59c22b927ce0b5cbd8d6af12 /addons/project/models/project.py
parente6e0eafccd483e2b002b45b514181c8ce4238b0d (diff)
[IMP] base,web: _for_xml_id as a safe access point
/web/action/load is the public controller that Should be used by the webclient to fetch actions _for_xml_id is the default access method on actions that implements fields filtering to avoid leaking server action code or other information not needed by the webclient Implementing whitelist of fields that can be access per model
Diffstat (limited to 'addons/project/models/project.py')
-rw-r--r--addons/project/models/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/models/project.py b/addons/project/models/project.py
index 325c446ae59..374e5dcda48 100644
--- a/addons/project/models/project.py
+++ b/addons/project/models/project.py
@@ -442,7 +442,7 @@ class Project(models.Model):
def action_view_all_rating(self):
""" return the action to see all the rating of the project and activate default filters"""
- action = self.env['ir.actions.act_window'].for_xml_id('project', 'rating_rating_action_view_project_rating')
+ action = self.env['ir.actions.act_window']._for_xml_id('project.rating_rating_action_view_project_rating')
action['name'] = _('Ratings of %s') % (self.name,)
action_context = ast.literal_eval(action['context']) if action['context'] else {}
action_context.update(self._context)