-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] maintenance_timesheet: Migration to 18.0
- Loading branch information
1 parent
049f111
commit bcd612d
Showing
15 changed files
with
79 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Maintenance Timesheets | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:805455b905e0bb2c77b9c388b459914983fb8f17bcd86925fa9aae75870a5d7a | ||
!! source digest: sha256:1b98f2753800236b54b8f2dfa33853e253e7a69f8b58578bf7b6cf99bfd9562d | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -59,6 +59,9 @@ Contributors | |
- David Alonso <[email protected]> | ||
- Luisa Miguéns <[email protected]> | ||
- Christian Ramos <[email protected]> | ||
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__ | ||
|
||
- Bhavesh Heliconia | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import models | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,15 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2024-03-14 15:36+0000\n" | ||
"PO-Revision-Date: 2025-01-11 12:06+0000\n" | ||
"Last-Translator: mymage <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
"X-Generator: Weblate 5.6.2\n" | ||
|
||
#. module: maintenance_timesheet | ||
#: model_terms:ir.ui.view,arch_db:maintenance_timesheet.hr_equipment_request_view_kanban | ||
|
@@ -86,6 +86,7 @@ msgstr "Attrezzatura manutenzione" | |
#. module: maintenance_timesheet | ||
#: model:ir.model,name:maintenance_timesheet.model_maintenance_request | ||
#: model:ir.model.fields,field_description:maintenance_timesheet.field_account_analytic_line__maintenance_request_id | ||
#: model:ir.model.fields,field_description:maintenance_timesheet.field_timesheets_analysis_report__maintenance_request_id | ||
msgid "Maintenance Request" | ||
msgstr "Richiesta manutenzione" | ||
|
||
|
@@ -141,6 +142,11 @@ msgstr "Ore totali foglio presenze" | |
msgid "Timesheets" | ||
msgstr "Fogli ore" | ||
|
||
#. module: maintenance_timesheet | ||
#: model:ir.model,name:maintenance_timesheet.model_timesheets_analysis_report | ||
msgid "Timesheets Analysis Report" | ||
msgstr "Resoconto analisi foglii ore" | ||
|
||
#~ msgid "<span class=\"o_label\" style=\"padding-left: 5px;\">Hours</span>" | ||
#~ msgstr "<span class=\"o_label\" style=\"padding-left: 5px;\">Ore</span>" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
- David Alonso \<<[email protected]>\> | ||
- Luisa Miguéns \<<[email protected]>\> | ||
- Christian Ramos \<<[email protected]>\> | ||
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) | ||
- Bhavesh Heliconia | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import timesheets_analysis_report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
maintenance_timesheet/report/timesheets_analysis_report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from odoo import api, fields, models | ||
|
||
|
||
class TimesheetsAnalysisReport(models.Model): | ||
_inherit = "timesheets.analysis.report" | ||
|
||
maintenance_request_id = fields.Many2one( | ||
comodel_name="maintenance.request", readonly=True | ||
) | ||
|
||
@api.model | ||
def _select(self): | ||
return ( | ||
super()._select() | ||
+ """, | ||
A.maintenance_request_id AS maintenance_request_id | ||
""" | ||
) | ||
|
||
@api.model | ||
def _from(self): | ||
return ( | ||
super()._from() | ||
+ """ | ||
LEFT JOIN maintenance_request MR ON A.maintenance_request_id = MR.id | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters