mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-28 02:52:01 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -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
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue