Skip to content

Commit

Permalink
ADD TD20 doc type (OCA#725)
Browse files Browse the repository at this point in the history
IMP l10n_it_fiscal_document_type to be sure that doc type is always set
FIX l10n_it_fatturapa_out to use the fiscal doc type
  • Loading branch information
eLBati authored and TheMule71 committed Dec 15, 2022
1 parent 9056d2e commit 5ef2a3f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
'name': 'Italian Localization - Fattura elettronica - Emissione',
'version': '12.0.1.0.0',
'version': '12.0.1.0.1',
'development_status': 'Beta',
'category': 'Localization/Italy',
'summary': 'Emissione fatture elettroniche',
Expand Down
20 changes: 10 additions & 10 deletions l10n_it_fatturapa_out/i18n/l10n_it_fatturapa_out.pot
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ msgid "Attachment URL"
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:855
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:853
#, python-format
msgid "Attachment generated by electronic invoice export"
msgstr ""
Expand Down Expand Up @@ -327,7 +327,7 @@ msgid "Invoice %s has XML and can't be canceled. Delete the XML before."
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:793
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:791
#, python-format
msgid "Invoice %s has e-invoice export file yet."
msgstr ""
Expand All @@ -339,7 +339,7 @@ msgid "Invoice does not have a number."
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:591
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:589
#, python-format
msgid "Invoice line %s does not have tax."
msgstr ""
Expand All @@ -350,7 +350,7 @@ msgid "Invoices"
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:757
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:755
#, python-format
msgid "Invoices must belong to the same partner."
msgstr ""
Expand Down Expand Up @@ -414,14 +414,14 @@ msgid "Name"
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:664
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:662
#, python-format
msgid "No 'law reference' field for tax %s."
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:623
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:660
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:621
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:658
#, python-format
msgid "No 'nature' field for tax %s."
msgstr ""
Expand Down Expand Up @@ -487,13 +487,13 @@ msgid "Partner VAT number and fiscal code are not set."
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:686
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:684
#, python-format
msgid "Payment term %s does not have a linked e-invoice payment method."
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:682
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:680
#, python-format
msgid "Payment term %s does not have a linked e-invoice payment term."
msgstr ""
Expand Down Expand Up @@ -586,7 +586,7 @@ msgid "Thumbnail"
msgstr ""

#. module: l10n_it_fatturapa_out
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:594
#: code:addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py:592
#, python-format
msgid "Too many taxes for invoice line %s."
msgstr ""
Expand Down
4 changes: 1 addition & 3 deletions l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,7 @@ def setDatiGeneraliDocumento(self, invoice, body):
raise UserError(
_('Invoice does not have a number.'))

TipoDocumento = 'TD01'
if invoice.type == 'out_refund':
TipoDocumento = 'TD04'
TipoDocumento = invoice.fiscal_document_type_id.code
ImportoTotaleDocumento = invoice.amount_total
if invoice.split_payment:
ImportoTotaleDocumento += invoice.amount_sp
Expand Down

0 comments on commit 5ef2a3f

Please sign in to comment.