mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
15 lines
358 B
Python
15 lines
358 B
Python
from odoo import api, exceptions, fields, models, _
|
|
|
|
|
|
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(),
|
|
}
|