odoo-addon-l10n-it-vat-registries 18.0.1.0.0.6__py3-none-any.whl → 18.0.1.0.1__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 - Registri IVA
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:d7dfc4dbdd66950f08f75a81de4358d7372782e9ce8acef57533c072167b5a3d
10
+ !! source digest: sha256:2a8c789a996d22f66827624d586939931a8e2278acd8d811c51f018a11001a06
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -6,7 +6,7 @@
6
6
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
7
7
 
8
8
  {
9
- "version": "18.0.1.0.0",
9
+ "version": "18.0.1.0.1",
10
10
  "name": "ITA - Registri IVA",
11
11
  "category": "Localization/Italy",
12
12
  "author": "Agile Business Group, Odoo Community Association (OCA), LinkIt Srl",
@@ -79,6 +79,20 @@ class ReportRegistroIva(models.AbstractModel):
79
79
  tax = move_line.tax_line_id
80
80
  is_base = False
81
81
 
82
+ if (
83
+ not is_base
84
+ and len(tax.parent_tax_ids) == 1
85
+ and tax.parent_tax_ids[0].amount_type == "group"
86
+ ):
87
+ tax_data = {
88
+ "tax": tax,
89
+ "group": tax.parent_tax_ids[0],
90
+ }
91
+
92
+ if move._l10n_it_edi_is_neg_split_payment(tax_data):
93
+ # split payment case: don't consider the negative part
94
+ continue
95
+
82
96
  if move.l10n_it_edi_is_self_invoice and not is_base:
83
97
  if (
84
98
  move.is_purchase_document(include_receipts=True)
@@ -202,9 +216,4 @@ class ReportRegistroIva(models.AbstractModel):
202
216
  return total
203
217
 
204
218
  def _compute_totals_tax(self, tax, data):
205
- """
206
- Returns:
207
- A tuple: (tax_name, base, tax, deductible, undeductible)
208
-
209
- """
210
219
  return tax._compute_totals_tax(data)
@@ -279,14 +279,12 @@
279
279
  <th
280
280
  class="right_without_line_bold"
281
281
  >Tax</th>
282
- <t t-if="registry_type == 'supplier'">
283
- <th
284
- class="right_without_line_bold"
285
- >Deductible</th>
286
- <th
287
- class="right_without_line_bold"
288
- >Non-Deductible</th>
289
- </t>
282
+ <th
283
+ class="right_without_line_bold"
284
+ >Deductible</th>
285
+ <th
286
+ class="right_without_line_bold"
287
+ >Non-Deductible</th>
290
288
  </tr>
291
289
  </thead>
292
290
  <t
@@ -294,63 +292,84 @@
294
292
  t-as="total_used_tax"
295
293
  >
296
294
  <t
297
- t-set="tax_code_tuple"
295
+ t-set="tax_tuple"
298
296
  t-value="compute_totals_tax(total_used_tax, data)"
299
297
  />
298
+ <t
299
+ t-set="tax_name"
300
+ t-value="tax_tuple[0]"
301
+ />
302
+ <t
303
+ t-set="base_balance"
304
+ t-value="tax_tuple[1]"
305
+ />
306
+ <t
307
+ t-set="deductible_balance"
308
+ t-value="tax_tuple[3]"
309
+ />
310
+ <t
311
+ t-set="undeductible_balance"
312
+ t-value="tax_tuple[4]"
313
+ />
314
+ <t
315
+ t-set="customer_balance"
316
+ t-value="tax_tuple[7]"
317
+ />
318
+ <t
319
+ t-set="supplier_balance"
320
+ t-value="tax_tuple[8]"
321
+ />
300
322
  <t
301
323
  t-set="tot_base"
302
- t-value="tot_base + tax_code_tuple[1]"
324
+ t-value="tot_base + base_balance"
303
325
  />
304
326
  <t t-if="registry_type == 'customer'">
305
- <!-- tax_code_tuple[5] is debit_balance -->
306
327
  <t
307
328
  t-set="tot_tax"
308
- t-value="tot_tax + tax_code_tuple[5]"
329
+ t-value="tot_tax + customer_balance"
309
330
  />
310
331
  </t>
311
332
  <t t-if="registry_type == 'supplier'">
312
- <!-- tax_code_tuple[6] is credit_balance, tax_code_tuple[4] is undeductible, which must be added to credit to get total tax amount -->
313
333
  <t
314
334
  t-set="tot_tax"
315
- t-value="tot_tax + tax_code_tuple[6] + tax_code_tuple[4]"
316
- />
317
- <t
318
- t-set="tot_ded"
319
- t-value="tot_ded + tax_code_tuple[3]"
320
- />
321
- <t
322
- t-set="tot_unded"
323
- t-value="tot_unded + tax_code_tuple[4]"
335
+ t-value="tot_tax + supplier_balance"
324
336
  />
325
337
  </t>
338
+ <t
339
+ t-set="tot_ded"
340
+ t-value="tot_ded + deductible_balance"
341
+ />
342
+ <t
343
+ t-set="tot_unded"
344
+ t-value="tot_unded + undeductible_balance"
345
+ />
326
346
  <tr>
327
347
  <td
328
348
  class="left_without_line"
329
- t-esc="tax_code_tuple[0]"
349
+ t-esc="tax_name"
330
350
  />
331
351
  <td
332
352
  class="right_without_line"
333
- t-esc="formatLang(env, tax_code_tuple[1])"
353
+ t-esc="formatLang(env, base_balance)"
334
354
  />
335
355
  <td
336
356
  t-if="registry_type == 'customer'"
337
357
  class="right_without_line"
338
- t-esc="formatLang(env, tax_code_tuple[5])"
358
+ t-esc="formatLang(env, customer_balance)"
359
+ />
360
+ <td
361
+ t-if="registry_type == 'supplier'"
362
+ class="right_without_line"
363
+ t-esc="formatLang(env, supplier_balance)"
364
+ />
365
+ <td
366
+ class="right_without_line"
367
+ t-esc="formatLang(env, deductible_balance)"
368
+ />
369
+ <td
370
+ class="right_without_line"
371
+ t-esc="formatLang(env, undeductible_balance)"
339
372
  />
340
- <t t-if="registry_type == 'supplier'">
341
- <td
342
- class="right_without_line"
343
- t-esc="formatLang(env, tax_code_tuple[6] + tax_code_tuple[4])"
344
- />
345
- <td
346
- class="right_without_line"
347
- t-esc="formatLang(env, tax_code_tuple[3])"
348
- />
349
- <td
350
- class="right_without_line"
351
- t-esc="formatLang(env, tax_code_tuple[4])"
352
- />
353
- </t>
354
373
  </tr>
355
374
  </t>
356
375
  <tr>
@@ -365,16 +384,14 @@
365
384
  class="right_without_line_bold"
366
385
  t-esc="formatLang(env, tot_tax)"
367
386
  />
368
- <t t-if="registry_type == 'supplier'">
369
- <td
370
- class="right_without_line_bold"
371
- t-esc="formatLang(env, tot_ded)"
372
- />
373
- <td
374
- class="right_without_line_bold"
375
- t-esc="formatLang(env, tot_unded)"
376
- />
377
- </t>
387
+ <td
388
+ class="right_without_line_bold"
389
+ t-esc="formatLang(env, tot_ded)"
390
+ />
391
+ <td
392
+ class="right_without_line_bold"
393
+ t-esc="formatLang(env, tot_unded)"
394
+ />
378
395
  </tr>
379
396
  </table>
380
397
  </td>
@@ -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:d7dfc4dbdd66950f08f75a81de4358d7372782e9ce8acef57533c072167b5a3d
370
+ !! source digest: sha256:2a8c789a996d22f66827624d586939931a8e2278acd8d811c51f018a11001a06
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/18.0/l10n_it_vat_registries"><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-18-0/l10n-italy-18-0-l10n_it_vat_registries"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>Law: Decreto del Presidente della Repubblica del 26 ottobre 1972 n. 633
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-l10n_it_vat_registries
3
- Version: 18.0.1.0.0.6
3
+ Version: 18.0.1.0.1
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-account_tax_balance==18.0.*
6
6
  Requires-Dist: odoo-addon-date_range==18.0.*
@@ -26,7 +26,7 @@ ITA - Registri IVA
26
26
  !! This file is generated by oca-gen-addon-readme !!
27
27
  !! changes will be overwritten. !!
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
- !! source digest: sha256:d7dfc4dbdd66950f08f75a81de4358d7372782e9ce8acef57533c072167b5a3d
29
+ !! source digest: sha256:2a8c789a996d22f66827624d586939931a8e2278acd8d811c51f018a11001a06
30
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
31
 
32
32
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -1,6 +1,6 @@
1
- odoo/addons/l10n_it_vat_registries/README.rst,sha256=B6cMPP5_vdEO_ONLuZTgNKtxtaRABUa3wZ6eepuWldA,6309
1
+ odoo/addons/l10n_it_vat_registries/README.rst,sha256=RdovUA8EfkPEyzh8ZFV6KBQ185ejaSoyFi8QitHoDmo,6309
2
2
  odoo/addons/l10n_it_vat_registries/__init__.py,sha256=JqDSCLCkAweuTaARbhG1B8Lkrgg-ZjR4Jbkty4ySwok,107
3
- odoo/addons/l10n_it_vat_registries/__manifest__.py,sha256=uVh-MPAjcKsTLrjpq8Ao6rTV4IbFRa7zu7fxkXE_vNQ,1204
3
+ odoo/addons/l10n_it_vat_registries/__manifest__.py,sha256=_sny-7AVKuA9fPIsUWOt6xQ10JM0pPhI5WC6jEf1D0g,1204
4
4
  odoo/addons/l10n_it_vat_registries/i18n/am.po,sha256=WSOaUM9dqbuAtMfVaIZobLtQGt7A34XNRDAHh2GEmGI,13362
5
5
  odoo/addons/l10n_it_vat_registries/i18n/ar.po,sha256=xtcNUJQqSCS9IYb1So6yekqrPHJItYXHc1nVlp_15no,13520
6
6
  odoo/addons/l10n_it_vat_registries/i18n/bg.po,sha256=6Bc3CcemvSoutcf9vYiBojgLTEjMGZBjC9hrkp56gHw,13494
@@ -77,18 +77,18 @@ odoo/addons/l10n_it_vat_registries/models/__init__.py,sha256=6yHBq2GwnY9MZDjKUL-
77
77
  odoo/addons/l10n_it_vat_registries/models/account.py,sha256=-7xeUNAFzf4jDYqcBWiCTtOfieqMHgAN5sf2b5pqzLs,1092
78
78
  odoo/addons/l10n_it_vat_registries/models/account_journal.py,sha256=0OL_XPrMT1ixTvaQy_Eb7ymyzmZuMtjxOsi9PrliPfo,645
79
79
  odoo/addons/l10n_it_vat_registries/models/account_tax_registry.py,sha256=KCDmn87SFU7sQ9Nm7LT1jTc6slHV6yUya9tTU5gLTTM,1212
80
- odoo/addons/l10n_it_vat_registries/models/vat_registry.py,sha256=PuiBMcstd5TeNfOBhBeRIPRztAQjRvoUTaJkyKiyb-E,7767
80
+ odoo/addons/l10n_it_vat_registries/models/vat_registry.py,sha256=G00hdqwBdwgOGE0pRLmBCwfFvxfVs3Ud2iV6ISZHq7I,8136
81
81
  odoo/addons/l10n_it_vat_registries/readme/CONFIGURE.md,sha256=HBHb78MlOvRhZ_9zoOVkFLn8gI8srxnAcnJ3mRb5IVg,2313
82
82
  odoo/addons/l10n_it_vat_registries/readme/CONTRIBUTORS.md,sha256=mqsG-iv709t8dWOrPg2cvF3yDtnut8xBXCVh8K1xpqs,191
83
83
  odoo/addons/l10n_it_vat_registries/readme/CREDITS.md,sha256=Q372BU26Eqhkt_xq5BKviB8ZohmWbD0PH9w8w1YD5F4,107
84
84
  odoo/addons/l10n_it_vat_registries/readme/DESCRIPTION.md,sha256=wtW9ElobuDdencAdgRd6QzLDx1C5eeDzQOnDOLK-C4Q,96
85
85
  odoo/addons/l10n_it_vat_registries/readme/USAGE.md,sha256=DtBGHIk1gM695eu4_SwWqSeIyuX1mf4M5kArnojCkpY,792
86
- odoo/addons/l10n_it_vat_registries/report/report_registro_iva.xml,sha256=zmvmDdQoX9gziOua1yKNZntImc8jACwD6fgS5tgF-0Q,24192
86
+ odoo/addons/l10n_it_vat_registries/report/report_registro_iva.xml,sha256=EFFmIIvAl9L9aZ95zinX5ib6VSoRDlz7zIj1-yfUEiM,24818
87
87
  odoo/addons/l10n_it_vat_registries/report/reports.xml,sha256=wTvmIQjOwdsuvY0KKp5WqivIq2a6ATKg1CMBts6l5BA,586
88
88
  odoo/addons/l10n_it_vat_registries/security/ir.model.access.csv,sha256=60vgVGdBp4z_DW3k8g10Xsqn_lC3ISmsXRS8yFMIVSw,651
89
89
  odoo/addons/l10n_it_vat_registries/security/vat_registry_security.xml,sha256=0roce_QYNWfU6tZ_y3qCrMdmm5cUD21AjouP909Jjck,439
90
90
  odoo/addons/l10n_it_vat_registries/static/description/icon.png,sha256=xbRU_cSM3yeaxH2HArBlJ9csFUu0GYQitvLydbJnpAM,6167
91
- odoo/addons/l10n_it_vat_registries/static/description/index.html,sha256=pPV1jCsIobFUOPx3LblzwSaMrG7zaWoFGVxFNhPV-e8,16979
91
+ odoo/addons/l10n_it_vat_registries/static/description/index.html,sha256=_dPOw8RU3MzNJjMFfWg6xx_wa8C7Oql5E2He9o3ByiY,16979
92
92
  odoo/addons/l10n_it_vat_registries/tests/__init__.py,sha256=dZJwSFx0LQvIqMT8R2Pw_Z0kaW0spztW5C03jAy5bPY,93
93
93
  odoo/addons/l10n_it_vat_registries/tests/test_registry.py,sha256=vBR20YFz6z2bnDlzXhfYHj5wS8rMfTxflSZsEFrNuYQ,3338
94
94
  odoo/addons/l10n_it_vat_registries/views/account_journal_view.xml,sha256=BjjzCo_3C_9s1b86B3QGQK4qs-BXFJqf2RpxwBbfkPQ,574
@@ -97,7 +97,7 @@ odoo/addons/l10n_it_vat_registries/views/account_view.xml,sha256=0S_xjdHYN20Gi-K
97
97
  odoo/addons/l10n_it_vat_registries/wizard/__init__.py,sha256=tQ0lmoCQMclXMoP1kPEjgE9hDNd_qX46lks89WDXYQ0,98
98
98
  odoo/addons/l10n_it_vat_registries/wizard/print_registro_iva.py,sha256=T408JcYB027RhuM5Kh4Vr4LXGpkiCFJMlRzg-injkmg,6254
99
99
  odoo/addons/l10n_it_vat_registries/wizard/print_registro_iva.xml,sha256=0R3kSOz3uGNZe6JAV4k4LOwT8p7liRjY3l-y9bvGP2g,3692
100
- odoo_addon_l10n_it_vat_registries-18.0.1.0.0.6.dist-info/METADATA,sha256=CEV8RmLXK6ByN7ymtEf2skavutRluneH6R44YriIdj8,7043
101
- odoo_addon_l10n_it_vat_registries-18.0.1.0.0.6.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
102
- odoo_addon_l10n_it_vat_registries-18.0.1.0.0.6.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
103
- odoo_addon_l10n_it_vat_registries-18.0.1.0.0.6.dist-info/RECORD,,
100
+ odoo_addon_l10n_it_vat_registries-18.0.1.0.1.dist-info/METADATA,sha256=XidDZe_UcTTDVQb4i7cWh0xUQfiDRPtMFDwBzh_Geqs,7041
101
+ odoo_addon_l10n_it_vat_registries-18.0.1.0.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
102
+ odoo_addon_l10n_it_vat_registries-18.0.1.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
103
+ odoo_addon_l10n_it_vat_registries-18.0.1.0.1.dist-info/RECORD,,