1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/project_enterprise/models/project_project.py
2024-12-10 09:04:09 +07:00

14 lines
419 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Project(models.Model):
_inherit = 'project.project'
def action_view_tasks(self):
action = super().action_view_tasks()
if self._get_hide_partner():
action['views'] = [(view_id, view_type) for view_id, view_type in action['views'] if view_type != 'map']
return action