diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-10-29 10:54:35 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-10-30 15:44:15 +0100 |
| commit | 6dfcc5f9c85caa8ef67fc0914506c8f0d4f6e4d9 (patch) | |
| tree | 4d78bbe4e99a0555b775b55f3fb8cfe90ba4f168 /addons/website_project_issue/models/project_issue.py | |
| parent | 9e53e2173a654b5cf6240062ca63b6d80f64d311 (diff) | |
[FIX] various: get_access_action form one to multi
As this method is overided in several modules, the mix of new and
old API makes it difficult to handle. Indeed in some cases we
receive the expected dictionary, sometimes in a list, sometimes
in a list of list, due to api.one decorator.
This is a change in the method API, however it is currently completely
buggy. Moreover this method is used internally and should not be
used as an external API. Lastly, this method is new from v9.
Diffstat (limited to 'addons/website_project_issue/models/project_issue.py')
| -rw-r--r-- | addons/website_project_issue/models/project_issue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_project_issue/models/project_issue.py b/addons/website_project_issue/models/project_issue.py index 9344157422c..90238037a6e 100644 --- a/addons/website_project_issue/models/project_issue.py +++ b/addons/website_project_issue/models/project_issue.py @@ -8,10 +8,11 @@ class Issue(models.Model): _name = "project.issue" _inherit = ['project.issue'] - @api.one + @api.multi def get_access_action(self): """ Override method that generated the link to access the document. Instead of the classic form view, redirect to the post on the website directly """ + self.ensure_one() return { 'type': 'ir.actions.act_url', 'url': '/my/issues/%s' % self.id, |
