odoo-addon-l10n-it-fatturapa-out 16.0.1.4.0.3__py3-none-any.whl → 16.0.1.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ ITA - Fattura elettronica - Emissione
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:88527618f59f6dc6f397b130ca6cc94d609cdd679ab135c5cd5ca1aa53d87208
10
+ !! source digest: sha256:8964a90002cefebf831ed08a7e9f222bf65c0b373503fc579e5e9794a145fe3b
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -85,25 +85,25 @@ Usage
85
85
 
86
86
  **Italiano**
87
87
 
88
- - Compilare la fattura con i dati necessari per l'esportazione: per
89
- esempio, nella scheda "Allegati fattura elettronica"
90
- - Selezionare 1 o N fatture ed eseguire la procedura guidata
91
- "Esporta fattura elettronica"
92
- - Per le fatture estere, è possibile inviarle a soli fini fiscali
93
- inserendo il codice identificativo XXXXXXX (7 volte X) ed avendo
94
- cura di indicare il paese del partner. Le fatture vanno comunque
95
- spedite al cliente, ma si evita la predisposizione
96
- dell'esterometro.
88
+ - Compilare la fattura con i dati necessari per l'esportazione: per
89
+ esempio, nella scheda "Allegati fattura elettronica"
90
+ - Selezionare 1 o N fatture ed eseguire la procedura guidata "Esporta
91
+ fattura elettronica"
92
+ - Per le fatture estere, è possibile inviarle a soli fini fiscali
93
+ inserendo il codice identificativo XXXXXXX (7 volte X) ed avendo
94
+ cura di indicare il paese del partner. Le fatture vanno comunque
95
+ spedite al cliente, ma si evita la predisposizione
96
+ dell'esterometro.
97
97
 
98
98
  **English**
99
99
 
100
- - Fill invoice data you need to export: For instance, in 'Electronic
101
- Invoice Attachments' TAB
102
- - Select 1 or N invoices and run 'Export Electronic Invoice' wizard
103
- - For foreign invoices, it is possible to send them only for tax
104
- purposes with code XXXXXXX (7 times X) and assuring to set the
105
- country of the partner. Invoices must be sent anyway to the
106
- customer, but in this way it is not needed to prepare esterometro.
100
+ - Fill invoice data you need to export: For instance, in 'Electronic
101
+ Invoice Attachments' TAB
102
+ - Select 1 or N invoices and run 'Export Electronic Invoice' wizard
103
+ - For foreign invoices, it is possible to send them only for tax
104
+ purposes with code XXXXXXX (7 times X) and assuring to set the
105
+ country of the partner. Invoices must be sent anyway to the
106
+ customer, but in this way it is not needed to prepare esterometro.
107
107
 
108
108
  Bug Tracker
109
109
  ===========
@@ -128,21 +128,21 @@ Authors
128
128
  Contributors
129
129
  ------------
130
130
 
131
- - Davide Corio
132
- - Lorenzo Battistini <https://github.com/eLBati>
133
- - Roberto Onnis
134
- - Alessio Gerace
135
- - Alex Comba
136
- - Sergio Zanchetta <https://github.com/primes2h>
137
- - Marco Colombo <https://github.com/TheMule71>
138
- - Giovanni Serra <giovanni@gslab.it>
139
- - `Tecnativa <https://www.tecnativa.com>`__:
131
+ - Davide Corio
132
+ - Lorenzo Battistini <https://github.com/eLBati>
133
+ - Roberto Onnis
134
+ - Alessio Gerace
135
+ - Alex Comba
136
+ - Sergio Zanchetta <https://github.com/primes2h>
137
+ - Marco Colombo <https://github.com/TheMule71>
138
+ - Giovanni Serra <giovanni@gslab.it>
139
+ - `Tecnativa <https://www.tecnativa.com>`__:
140
140
 
141
- - Víctor Martínez
141
+ - Víctor Martínez
142
142
 
143
- - `Aion Tech <https://aiontech.company/>`__:
143
+ - `Aion Tech <https://aiontech.company/>`__:
144
144
 
145
- - Simone Rubino <simone.rubino@aion-tech.it>
145
+ - Simone Rubino <simone.rubino@aion-tech.it>
146
146
 
147
147
  Maintainers
148
148
  -----------
@@ -8,7 +8,7 @@
8
8
 
9
9
  {
10
10
  "name": "ITA - Fattura elettronica - Emissione",
11
- "version": "16.0.1.4.0",
11
+ "version": "16.0.1.5.0",
12
12
  "development_status": "Beta",
13
13
  "category": "Localization/Italy",
14
14
  "summary": "Emissione fatture elettroniche",
@@ -333,9 +333,15 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
333
333
  <!-- <ProvinciaAlbo t-out=""/>-->
334
334
  <!-- <NumeroIscrizioneAlbo t-out=""/>-->
335
335
  <!-- <DataIscrizioneAlbo t-out=""/>-->
336
- <RegimeFiscale>RF01</RegimeFiscale>
337
- <!-- TODO: see https://github.com/OCA/l10n-italy/issues/2557-->
338
- <!-- t-out="partner_id.fatturapa_fiscal_position_id.code"-->
336
+ <t t-if="company_id and company_id.fatturapa_fiscal_position_id">
337
+ <RegimeFiscale
338
+ t-out="company_id.fatturapa_fiscal_position_id.code"
339
+ />
340
+ </t>
341
+ <t t-if="not company_id">
342
+ <RegimeFiscale>RF01</RegimeFiscale>
343
+ </t>
344
+ <!-- NOTE: see https://github.com/OCA/l10n-italy/issues/2557 -->
339
345
  </DatiAnagrafici>
340
346
  <Sede>
341
347
  <t
@@ -706,6 +712,7 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
706
712
  <t
707
713
  t-call="l10n_it_fatturapa_out.account_invoice_it_cedente_prestatore"
708
714
  >
715
+ <t t-set="company_id" t-value="company_id" />
709
716
  <t t-set="partner_id" t-value="company_id.partner_id" />
710
717
  </t>
711
718
  <t
@@ -367,7 +367,7 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:88527618f59f6dc6f397b130ca6cc94d609cdd679ab135c5cd5ca1aa53d87208
370
+ !! source digest: sha256:8964a90002cefebf831ed08a7e9f222bf65c0b373503fc579e5e9794a145fe3b
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_fatturapa_out"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_fatturapa_out"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p><strong>Italiano</strong></p>
@@ -422,8 +422,8 @@ until now.</p>
422
422
  <ul class="simple">
423
423
  <li>Compilare la fattura con i dati necessari per l’esportazione: per
424
424
  esempio, nella scheda “Allegati fattura elettronica”</li>
425
- <li>Selezionare 1 o N fatture ed eseguire la procedura guidata
426
- “Esporta fattura elettronica”</li>
425
+ <li>Selezionare 1 o N fatture ed eseguire la procedura guidata “Esporta
426
+ fattura elettronica”</li>
427
427
  <li>Per le fatture estere, è possibile inviarle a soli fini fiscali
428
428
  inserendo il codice identificativo XXXXXXX (7 volte X) ed avendo
429
429
  cura di indicare il paese del partner. Le fatture vanno comunque
@@ -14,6 +14,7 @@ import string
14
14
 
15
15
  from odoo import api, fields, models
16
16
  from odoo.exceptions import UserError
17
+ from odoo.tools import float_is_zero
17
18
  from odoo.tools.translate import _
18
19
 
19
20
  from odoo.addons.l10n_it_account.tools.account_tools import encode_for_export
@@ -146,14 +147,28 @@ class WizardExportFatturapa(models.TransientModel):
146
147
  tax_line_id = tax_id.tax_line_id
147
148
  aliquota = format_numbers(tax_line_id.amount)
148
149
  key = _key(tax_line_id)
149
- out_computed[key] = {
150
- "AliquotaIVA": aliquota,
151
- "Natura": tax_line_id.kind_id.code,
152
- # 'Arrotondamento':'',
153
- "ImponibileImporto": tax_id.tax_base_amount,
154
- "Imposta": abs(tax_id.balance),
155
- "EsigibilitaIVA": tax_line_id.payability,
156
- }
150
+ tax_amount = 0
151
+ dp = self.env["decimal.precision"].precision_get("Account")
152
+ if invoice.move_type == "out_invoice":
153
+ if float_is_zero(tax_id.credit, dp) and tax_id.debit:
154
+ tax_amount = -tax_id.balance
155
+ if tax_id.credit and float_is_zero(tax_id.debit, dp):
156
+ tax_amount = abs(tax_id.balance)
157
+ else:
158
+ tax_amount = abs(tax_id.balance)
159
+ if key not in out_computed:
160
+ out_computed[key] = {
161
+ "AliquotaIVA": aliquota,
162
+ "Natura": tax_line_id.kind_id.code,
163
+ # 'Arrotondamento':'',
164
+ "ImponibileImporto": tax_id.tax_base_amount,
165
+ "Imposta": tax_amount,
166
+ "EsigibilitaIVA": tax_line_id.payability,
167
+ }
168
+ else:
169
+ out_computed[key]["ImponibileImporto"] += tax_id.tax_base_amount
170
+ out_computed[key]["Imposta"] += tax_amount
171
+
157
172
  if tax_line_id.law_reference:
158
173
  out_computed[key]["RiferimentoNormativo"] = encode_for_export(
159
174
  tax_line_id.law_reference, 100
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n_it_fatturapa_out
3
- Version: 16.0.1.4.0.3
3
+ Version: 16.0.1.5.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: elementpath
6
6
  Requires-Dist: odoo-addon-l10n_it_account>=16.0dev,<16.1dev
@@ -28,7 +28,7 @@ ITA - Fattura elettronica - Emissione
28
28
  !! This file is generated by oca-gen-addon-readme !!
29
29
  !! changes will be overwritten. !!
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
- !! source digest: sha256:88527618f59f6dc6f397b130ca6cc94d609cdd679ab135c5cd5ca1aa53d87208
31
+ !! source digest: sha256:8964a90002cefebf831ed08a7e9f222bf65c0b373503fc579e5e9794a145fe3b
32
32
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33
33
 
34
34
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -106,25 +106,25 @@ Usage
106
106
 
107
107
  **Italiano**
108
108
 
109
- - Compilare la fattura con i dati necessari per l'esportazione: per
110
- esempio, nella scheda "Allegati fattura elettronica"
111
- - Selezionare 1 o N fatture ed eseguire la procedura guidata
112
- "Esporta fattura elettronica"
113
- - Per le fatture estere, è possibile inviarle a soli fini fiscali
114
- inserendo il codice identificativo XXXXXXX (7 volte X) ed avendo
115
- cura di indicare il paese del partner. Le fatture vanno comunque
116
- spedite al cliente, ma si evita la predisposizione
117
- dell'esterometro.
109
+ - Compilare la fattura con i dati necessari per l'esportazione: per
110
+ esempio, nella scheda "Allegati fattura elettronica"
111
+ - Selezionare 1 o N fatture ed eseguire la procedura guidata "Esporta
112
+ fattura elettronica"
113
+ - Per le fatture estere, è possibile inviarle a soli fini fiscali
114
+ inserendo il codice identificativo XXXXXXX (7 volte X) ed avendo
115
+ cura di indicare il paese del partner. Le fatture vanno comunque
116
+ spedite al cliente, ma si evita la predisposizione
117
+ dell'esterometro.
118
118
 
119
119
  **English**
120
120
 
121
- - Fill invoice data you need to export: For instance, in 'Electronic
122
- Invoice Attachments' TAB
123
- - Select 1 or N invoices and run 'Export Electronic Invoice' wizard
124
- - For foreign invoices, it is possible to send them only for tax
125
- purposes with code XXXXXXX (7 times X) and assuring to set the
126
- country of the partner. Invoices must be sent anyway to the
127
- customer, but in this way it is not needed to prepare esterometro.
121
+ - Fill invoice data you need to export: For instance, in 'Electronic
122
+ Invoice Attachments' TAB
123
+ - Select 1 or N invoices and run 'Export Electronic Invoice' wizard
124
+ - For foreign invoices, it is possible to send them only for tax
125
+ purposes with code XXXXXXX (7 times X) and assuring to set the
126
+ country of the partner. Invoices must be sent anyway to the
127
+ customer, but in this way it is not needed to prepare esterometro.
128
128
 
129
129
  Bug Tracker
130
130
  ===========
@@ -149,21 +149,21 @@ Authors
149
149
  Contributors
150
150
  ------------
151
151
 
152
- - Davide Corio
153
- - Lorenzo Battistini <https://github.com/eLBati>
154
- - Roberto Onnis
155
- - Alessio Gerace
156
- - Alex Comba
157
- - Sergio Zanchetta <https://github.com/primes2h>
158
- - Marco Colombo <https://github.com/TheMule71>
159
- - Giovanni Serra <giovanni@gslab.it>
160
- - `Tecnativa <https://www.tecnativa.com>`__:
152
+ - Davide Corio
153
+ - Lorenzo Battistini <https://github.com/eLBati>
154
+ - Roberto Onnis
155
+ - Alessio Gerace
156
+ - Alex Comba
157
+ - Sergio Zanchetta <https://github.com/primes2h>
158
+ - Marco Colombo <https://github.com/TheMule71>
159
+ - Giovanni Serra <giovanni@gslab.it>
160
+ - `Tecnativa <https://www.tecnativa.com>`__:
161
161
 
162
- - Víctor Martínez
162
+ - Víctor Martínez
163
163
 
164
- - `Aion Tech <https://aiontech.company/>`__:
164
+ - `Aion Tech <https://aiontech.company/>`__:
165
165
 
166
- - Simone Rubino <simone.rubino@aion-tech.it>
166
+ - Simone Rubino <simone.rubino@aion-tech.it>
167
167
 
168
168
  Maintainers
169
169
  -----------
@@ -1,7 +1,7 @@
1
- odoo/addons/l10n_it_fatturapa_out/README.rst,sha256=VeDk6_vJBs_I_HpT11nsJ9TNEOk3YVCOaoLbWsdLjwo,5649
1
+ odoo/addons/l10n_it_fatturapa_out/README.rst,sha256=ZjO22J-mBzQyws5c620rXpP2EW5FnKKffc5U_mra2AI,5619
2
2
  odoo/addons/l10n_it_fatturapa_out/__init__.py,sha256=W3SLrBcwzfdkH0kPgcqn6I9vWke1eAXoWdS6LBjaLKw,137
3
- odoo/addons/l10n_it_fatturapa_out/__manifest__.py,sha256=o8N6zU2fDrpedgM_NTDq2jM5dnURqkOP2nvfUfVlS1U,1480
4
- odoo/addons/l10n_it_fatturapa_out/data/invoice_it_template.xml,sha256=HHGIO_O16G2rWOdEyahUCJ9yOI1OjZZ_wC4KXy3Ljsw,37476
3
+ odoo/addons/l10n_it_fatturapa_out/__manifest__.py,sha256=tnEFLZkCLreFL4lz7ran8JA4W2sMq8NJoRCvF8U6Vyk,1480
4
+ odoo/addons/l10n_it_fatturapa_out/data/invoice_it_template.xml,sha256=ZeQdtRY5oj0AMoLSezxIGLWdeEAtsdx5XU9mIOar_rE,37801
5
5
  odoo/addons/l10n_it_fatturapa_out/data/l10n_it_fatturapa_out_data.xml,sha256=OkEskrtlI1TklcV52BeHnTe9Idmr438b8agZgD7in3c,320
6
6
  odoo/addons/l10n_it_fatturapa_out/i18n/am.po,sha256=UEtCurA2MeMdCbhqd09pgqFjr6N8Z4NOwB_0GsCX78Y,30585
7
7
  odoo/addons/l10n_it_fatturapa_out/i18n/ar.po,sha256=6SeUeg0pJ71B35S6boRw33GAXBfs4JiMZ29grM6x97c,30793
@@ -92,7 +92,7 @@ odoo/addons/l10n_it_fatturapa_out/security/ir.model.access.csv,sha256=hheFLdZySR
92
92
  odoo/addons/l10n_it_fatturapa_out/security/res_groups.xml,sha256=2DalEeSlGz07IrM8rO4a_3gxb2d886k0EjXeYduoa5Y,401
93
93
  odoo/addons/l10n_it_fatturapa_out/security/rules.xml,sha256=6_swzyFR5GaxWSA9j3NeUOVGgKVbLDOFk7jVDzUdUfg,514
94
94
  odoo/addons/l10n_it_fatturapa_out/static/description/icon.png,sha256=_NDgbxF3ta8ijPcvP_MPNmjN8w4hlN218cE3omw8EGM,4829
95
- odoo/addons/l10n_it_fatturapa_out/static/description/index.html,sha256=UBM8oEu0m-vnPfyICJ26dMjIaZ2rMa-CkPMpekm0tHE,16499
95
+ odoo/addons/l10n_it_fatturapa_out/static/description/index.html,sha256=QUIbyiz1Nbg4JuE47YXTv-g6fY5u1MAsnN1edZiquSc,16499
96
96
  odoo/addons/l10n_it_fatturapa_out/tests/__init__.py,sha256=KNxMSQSj8RCCaGVrqzTQ5Od7v2x6gUrdZz_PubpUp2A,148
97
97
  odoo/addons/l10n_it_fatturapa_out/tests/fatturapa_common.py,sha256=E5eftcSbYsCsbaLu8sVbSP3iCYbbn9kL4_adh6kkzW8,11883
98
98
  odoo/addons/l10n_it_fatturapa_out/tests/test_fatturapa_out_noteline.py,sha256=KO7of281GNIPLjcAJXv-2jdA9q1nFLGu8XBcftGrlE4,8950
@@ -124,11 +124,11 @@ odoo/addons/l10n_it_fatturapa_out/views/company_view.xml,sha256=1mWO8CT-zo6MP5ug
124
124
  odoo/addons/l10n_it_fatturapa_out/views/partner_view.xml,sha256=DvVhn8VfHkt8YSFPlKI9k1lrV4D6fg7e5s5vNlDnq4g,513
125
125
  odoo/addons/l10n_it_fatturapa_out/wizard/__init__.py,sha256=ZWQbHot4YQecoYNooAZtguia2eQat_XatBfN9bkNsYs,140
126
126
  odoo/addons/l10n_it_fatturapa_out/wizard/efattura.py,sha256=Wz463mWRjLh3vaRaCXEa8ynN5ZxBZXC0eGRpT59eNF4,12466
127
- odoo/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py,sha256=mTzXNoIDj4yFdRLN2uoT8KC3oRK8OIz-J56KQ1VU014,12874
127
+ odoo/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py,sha256=DLvjpcYWUtNo53cb5BU5wKvnSbM-vpaODbhayxm35IY,13592
128
128
  odoo/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa_regenerate.py,sha256=wWr5g6bT1WkXetBmcsS5KRtICisb2eb3BxiEaNnsma4,2357
129
129
  odoo/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa_view.xml,sha256=ljilCk05gfHX2AvYGyGF4ayuikz5-y8fweD_S2PiHgM,1795
130
130
  odoo/addons/l10n_it_fatturapa_out/wizard/wizard_export_fatturapa_view_regenerate.xml,sha256=ZK2JL46SfqWWClapEhwW65PXWxffvxZKFrmQSU9Iyrs,1465
131
- odoo_addon_l10n_it_fatturapa_out-16.0.1.4.0.3.dist-info/METADATA,sha256=kcCk_J-0iBkICZ9FeSvEZNEQcqL9__jCl3w8h1cY3f4,6497
132
- odoo_addon_l10n_it_fatturapa_out-16.0.1.4.0.3.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
133
- odoo_addon_l10n_it_fatturapa_out-16.0.1.4.0.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
134
- odoo_addon_l10n_it_fatturapa_out-16.0.1.4.0.3.dist-info/RECORD,,
131
+ odoo_addon_l10n_it_fatturapa_out-16.0.1.5.0.dist-info/METADATA,sha256=Ir3D96uadbDps36WD8kk7NIhmUhQf462Z5y762X9rzk,6465
132
+ odoo_addon_l10n_it_fatturapa_out-16.0.1.5.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
133
+ odoo_addon_l10n_it_fatturapa_out-16.0.1.5.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
134
+ odoo_addon_l10n_it_fatturapa_out-16.0.1.5.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: Whool 1.0.1
2
+ Generator: Whool 1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5