[MIG] timesheet_timesheet_analysis_report: migrate to 18.0

This commit is contained in:
Stéphan Sainléger
2026-05-29 23:16:32 +02:00
parent ca1a5981b2
commit e4cc346dfe
5 changed files with 32 additions and 13 deletions

View File

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

View File

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