19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -0,0 +1,24 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details
from odoo import fields, models
class ReportProjectTaskUser(models.Model):
_inherit = 'report.project.task.user'
remaining_hours_so = fields.Float('Time Remaining on SO', readonly=True, groups="hr_timesheet.group_hr_timesheet_user")
def _select(self):
return super()._select() + """,
sol.remaining_hours as remaining_hours_so
"""
def _group_by(self):
return super()._group_by() + """,
sol.remaining_hours
"""
def _from(self):
return super()._from() + """
LEFT JOIN sale_order_line sol ON t.sale_line_id = sol.id
"""