-
Notifications
You must be signed in to change notification settings - Fork 22
[14.0][IMP] account invoice report service print repair orders #712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eantones
merged 2 commits into
14.0
from
14.0-imp-account_invoice_report_service-print_repair_orders
Sep 19, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,63 @@ | ||
| ============================= | ||
| Service invoice report repair | ||
| ============================= | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:077fc208bce6c55eaf2aee8ca4a08be195c7918016044acdac0cf770484173e6 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Beta | ||
| .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github | ||
| :target: https://github.com/NuoBiT/odoo-addons/tree/14.0/account_invoice_report_service_repair | ||
| :alt: NuoBiT/odoo-addons | ||
|
|
||
| |badge1| |badge2| |badge3| | ||
|
|
||
| The "Account Invoice Report Service Repair" module enhances the invoice delivery report by including information about the associated repair order. When a service repair is performed and invoiced, this module ensures that the repair order reference is visible on the invoice delivery report. This feature improves traceability and transparency for both internal users and customers, making it easier to track which repair operations are linked to each invoice. The module is especially useful for companies that manage repair services and need to provide detailed documentation to their clients. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/NuoBiT/odoo-addons/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/NuoBiT/odoo-addons/issues/new?body=module:%20account_invoice_report_service_repair%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ~~~~~~~ | ||
|
|
||
| * NuoBiT Solutions | ||
| * S.L. | ||
|
|
||
| Contributors | ||
| ~~~~~~~~~~~~ | ||
|
|
||
| * `NuoBiT <https://www.nuobit.com>`_: | ||
|
|
||
| * Eric Antones <eantones@nuobit.com> | ||
|
|
||
| Maintainers | ||
| ~~~~~~~~~~~ | ||
|
|
||
| This module is part of the `NuoBiT/odoo-addons <https://github.com/NuoBiT/odoo-addons/tree/14.0/account_invoice_report_service_repair>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. |
This file contains hidden or 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 models |
This file contains hidden or 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,16 @@ | ||
| # Copyright 2025 NuoBiT - Eric Antones <eantones@nuobit.com> | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
|
||
| { | ||
| "name": "Service invoice report repair", | ||
| "summary": "This module displays the related repair order on the " | ||
| "invoice delivery report, providing a clear link between " | ||
| "service repairs and their corresponding invoices.", | ||
| "version": "14.0.1.0.0", | ||
| "author": "NuoBiT Solutions, S.L.", | ||
| "license": "AGPL-3", | ||
| "category": "Accounting", | ||
| "website": "https://github.com/nuobit/odoo-addons", | ||
| "depends": ["account_invoice_report_service", "repair"], | ||
| "auto_install": True, | ||
| } |
This file contains hidden or 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,2 @@ | ||
| from . import account_move_line | ||
| from . import repair_order |
15 changes: 15 additions & 0 deletions
15
account_invoice_report_service_repair/models/account_move_line.py
This file contains hidden or 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,15 @@ | ||
| # Copyright 2025 NuoBiT - Eric Antones <eantones@nuobit.com> | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
|
||
|
|
||
| from odoo import models | ||
|
|
||
|
|
||
| class AccountMoveLine(models.Model): | ||
| _inherit = "account.move.line" | ||
|
|
||
| def _get_orders(self): | ||
| # we use a list to allow different types of orders, sale, repair, etc | ||
| return super()._get_orders() + [ | ||
| x for x in self.repair_fee_ids.repair_id | self.repair_line_ids.repair_id | ||
| ] |
30 changes: 30 additions & 0 deletions
30
account_invoice_report_service_repair/models/repair_order.py
This file contains hidden or 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,30 @@ | ||
| # Copyright 2025 NuoBiT - Eric Antones <eantones@nuobit.com> | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
|
|
||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class Repair(models.Model): | ||
| _inherit = "repair.order" | ||
|
|
||
| date_order = fields.Datetime(related="move_id.date", readonly=True) | ||
|
|
||
| client_order_ref = fields.Char(compute="_compute_client_order_ref") | ||
|
|
||
|
eantones marked this conversation as resolved.
|
||
| def _compute_client_order_ref(self): | ||
|
eantones marked this conversation as resolved.
|
||
| for order in self: | ||
|
eantones marked this conversation as resolved.
|
||
| order.client_order_ref = False | ||
|
|
||
| service_number = fields.Integer(compute="_compute_service_number") | ||
|
|
||
| def _compute_service_number(self): | ||
| for order in self: | ||
|
eantones marked this conversation as resolved.
|
||
| order.service_number = 0 | ||
|
|
||
| date_order_tz = fields.Date( | ||
| string="Order Date TZ", readonly=True, compute="_compute_date_order_tz" | ||
| ) | ||
|
|
||
| def _compute_date_order_tz(self): | ||
| for rec in self: | ||
| rec.date_order_tz = fields.Date.context_today(rec, rec.date_order) | ||
3 changes: 3 additions & 0 deletions
3
account_invoice_report_service_repair/readme/CONTRIBUTORS.rst
This file contains hidden or 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,3 @@ | ||
| * `NuoBiT <https://www.nuobit.com>`_: | ||
|
|
||
| * Eric Antones <eantones@nuobit.com> |
This file contains hidden or 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 @@ | ||
| The "Account Invoice Report Service Repair" module enhances the invoice delivery report by including information about the associated repair order. When a service repair is performed and invoiced, this module ensures that the repair order reference is visible on the invoice delivery report. This feature improves traceability and transparency for both internal users and customers, making it easier to track which repair operations are linked to each invoice. The module is especially useful for companies that manage repair services and need to provide detailed documentation to their clients. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.