summaryrefslogtreecommitdiff
path: root/addons/website_rating_project_issue/models/project.py
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-06-06 14:49:48 +0200
committerYannick Tivisse <yti@odoo.com>2017-08-07 11:24:51 +0200
commit1b4f2fbe9c9fbdcab766f7213ca860c5ecb65ed2 (patch)
tree7faafe9aa8df5d3f86a51cf328facfe66bfd626b /addons/website_rating_project_issue/models/project.py
parente7c470ff03e0e4b3b6d4ebc69fb090f8eacac688 (diff)
[MOV] website_rating_project(_issue): Rename module and remove issues integration
Diffstat (limited to 'addons/website_rating_project_issue/models/project.py')
-rw-r--r--addons/website_rating_project_issue/models/project.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/addons/website_rating_project_issue/models/project.py b/addons/website_rating_project_issue/models/project.py
deleted file mode 100644
index ca0df1796b7..00000000000
--- a/addons/website_rating_project_issue/models/project.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-from odoo import api, models
-
-
-class Project(models.Model):
-
- _name = "project.project"
- _inherit = ['project.project', 'website.published.mixin']
-
- @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,)
- }
-
- @api.multi
- def _compute_website_url(self):
- super(Project, self)._compute_website_url()
- for project in self:
- project.website_url = "/project/rating/%s" % project.id