[MIG] timesheet_timesheet_analysis_report: migrate to 18.0
This commit is contained in:
@@ -1 +1 @@
|
||||
from . import timesheet_analysis_report
|
||||
from . import timesheet_analysis_report
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user