mirror of
https://github.com/bringout/oca-project.git
synced 2026-04-19 05:22:01 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
696 B
Python
28 lines
696 B
Python
# Copyright 2024 Tecnativa - Carlos López
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ReportProjectTaskUser(models.Model):
|
|
_inherit = "report.project.task.user"
|
|
|
|
planned_date_start = fields.Datetime(readonly=True)
|
|
planned_date_end = fields.Datetime(readonly=True)
|
|
|
|
def _select(self):
|
|
return (
|
|
super()._select()
|
|
+ """,
|
|
t.planned_date_start,
|
|
t.planned_date_end"""
|
|
)
|
|
|
|
def _group_by(self):
|
|
return (
|
|
super()._group_by()
|
|
+ """,
|
|
t.planned_date_start,
|
|
t.planned_date_end
|
|
"""
|
|
)
|