MIG website_project_task For Odoo 13.0

This commit is contained in:
Bhoomi
2019-09-23 18:33:12 -04:00
parent 08a5e7f0c9
commit 3e6a7da53c
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(),
}