[MIG] timesheet_timesheet_analysis_report: migrate to 18.0

This commit is contained in:
Stéphan Sainléger
2026-04-03 14:41:08 +02:00
parent a2421b89da
commit 494f2b4926
5 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import timesheet_analysis_report

View File

@@ -0,0 +1,12 @@
from odoo import fields, models, api
class TimesheetsAnalysisReport(models.Model):
_inherit = "timesheets.analysis.report"
timesheet_id = fields.Many2one("account.analytic.line", string="Timesheet", readonly=True, help="Feuille de temps")
@api.model
def _select(self):
return super()._select() + """,
A.id AS timesheet_id
"""