-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_it_corrispettivi: Migration to 14.0
- Loading branch information
Showing
13 changed files
with
290 additions
and
375 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 |
---|---|---|
|
@@ -98,6 +98,7 @@ Authors | |
|
||
* Odoo Italian Community | ||
* Agile Business Group | ||
* AIR s.r.l. | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
@@ -106,6 +107,7 @@ Contributors | |
* Simone Rubino <[email protected]> | ||
* Sergio Zanchetta <https://github.com/primes2h> | ||
* Giovanni Serra <[email protected]> | ||
* Kevin Poli <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
@@ -120,6 +122,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_corrispettivi>`_ project on GitHub. | ||
This module is part of the `AIR/l10n-italy <https://github.com/airsrl/l10n-italy/tree/14.0/l10n_it_corrispettivi>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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,5 @@ | ||
|
||
from . import controllers | ||
from . import models | ||
from . import wizards | ||
|
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,10 +1,12 @@ | ||
# Copyright 2019 Simone Rubino | ||
#Copyright 2021 Kevin Poli - AIR s.r.l. | ||
|
||
from odoo.addons.portal.controllers.portal import CustomerPortal | ||
|
||
|
||
class CorrispettiviPortal(CustomerPortal): | ||
|
||
def _show_report(self, model, report_type, report_ref, download=False): | ||
if model._name == "account.invoice" and model.corrispettivo: | ||
report_ref = "l10n_it_corrispettivi.account_corrispettivi" | ||
if model._name == 'account.move' and model.corrispettivo: | ||
report_ref = 'l10n_it_corrispettivi.account_corrispettivi' | ||
return super()._show_report(model, report_type, report_ref, download) |
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 +1,2 @@ | ||
|
||
from . import account |
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 +1,2 @@ | ||
|
||
from . import test_corrispettivi |
Oops, something went wrong.