MIG website_project_task For Odoo 13.0

This commit is contained in:
Bhoomi
2019-09-23 18:33:12 -04:00
committed by Juan Pablo Ticse
parent 9f8fc1c75f
commit cbcf0b85d0
5 changed files with 36 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
from odoo import api, exceptions, fields, models, _
from werkzeug.urls import url_encode
class ProjectTask(models.Model):
_name = 'project.task'
_inherit = ['project.task', 'portal.mixin']
def preview_task(self):
self.ensure_one()
return {
'type': 'ir.actions.act_url',
'target': 'self',
'url': self.get_portal_url(),
}