-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX l10n_it_fatturapa_out: it does not depend on l10n_eu_oss_oca so i…
…t can't use oss_country_id
- Loading branch information
Showing
3 changed files
with
14 additions
and
2 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
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 l10n_eu_oss_wizard | ||
from . import wizard_export_fatturapa |
13 changes: 13 additions & 0 deletions
13
l10n_it_fatturapa_out_oss/wizard/wizard_export_fatturapa.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,13 @@ | ||
from odoo import api, models | ||
|
||
|
||
class WizardExportFatturapa(models.TransientModel): | ||
_inherit = "wizard.export.fatturapa" | ||
|
||
@api.model | ||
def getAllTaxes(self, invoice): | ||
out = super().getAllTaxes(invoice) | ||
for tax_line_id in out: | ||
tax_line = self.env["account.tax"].browse(tax_line_id) | ||
out[tax_line_id]["Oss Country"] = tax_line.oss_country_id | ||
return out |