Skip to content

Commit

Permalink
[IMP] l10n_it_fatturapa_out_sp: supporto per la conversione degli imp…
Browse files Browse the repository at this point in the history
…orti in EUR per fatture in valuta estera
  • Loading branch information
TheMule71 committed Apr 15, 2022
1 parent fd8b44c commit 1e862c3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
3 changes: 3 additions & 0 deletions l10n_it_fatturapa_out_sp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2022 Marco Colombo <[email protected]>

from . import wizard
6 changes: 2 additions & 4 deletions l10n_it_fatturapa_out_sp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
"category": "Localization/Italy",
"summary": "Scissione pagamenti in fatturapa",
"author": "Marco Colombo," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy" "l10n_it_fatturapa_out_sp",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"depends": [
"l10n_it_fatturapa_out",
"l10n_it_split_payment",
],
"data": [
"view/invoice_it_template.xml",
],
"installable": True,
"autoinstall": True,
}
18 changes: 0 additions & 18 deletions l10n_it_fatturapa_out_sp/view/invoice_it_template.xml

This file was deleted.

3 changes: 3 additions & 0 deletions l10n_it_fatturapa_out_sp/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2022 Marco Colombo <[email protected]>

from . import wizard_export_fatturapa
15 changes: 15 additions & 0 deletions l10n_it_fatturapa_out_sp/wizard/wizard_export_fatturapa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2022 Marco Colombo <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, models


class WizardExportFatturapa(models.TransientModel):
_inherit = "wizard.export.fatturapa"

@api.model
def getImportoTotale(self, invoice):
amount_total = super().getImportoTotale(invoice)
if invoice.split_payment:
amount_total += invoice.amount_sp
return amount_total

0 comments on commit 1e862c3

Please sign in to comment.