Files
odoo_source/addons/website_rating_project_issue/project_project.py
T

19 lines
523 B
Python

# -*- coding: utf-8 -*-
from openerp import api, models
class Project(models.Model):
_inherit = 'project.project'
@api.multi
def action_view_all_rating(self):
""" Override this method without calling parent to redirect to rating website project page """
self.ensure_one()
return {
'type': 'ir.actions.act_url',
'name': "Redirect to the Website Projcet Rating Page",
'target': 'self',
'url': "/project/rating/%s" % (self.id,)
}