Skip to content

Commit

Permalink
Merge branch 'OCA:16.0' into fix/narration-original-invoice-date
Browse files Browse the repository at this point in the history
  • Loading branch information
rlucia authored Aug 2, 2024
2 parents a3cf3ad + f3bbdcd commit fd1b1f4
Show file tree
Hide file tree
Showing 472 changed files with 16,539 additions and 5,628 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ exclude: |
(l10n_it_account/tools/xsd)|
# external stylesheets
(l10n_it_fatturapa/data/Foglio_di_stile_fatturaordinaria_v1.2.2.xsl)|
(l10n_it_fatturapa/data/fatturasemplificata_v1.0.xsl)|
(l10n_it_fatturapa/data/FoglioStileAssoSoftware.xsl)|
(l10n_it_fatturapa/data/FoglioStileSouthTyrol-bilingue.xsl)|
# XML tests should not be reformatted
Expand Down
51 changes: 29 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,64 +21,71 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_vat_period_end_statement](account_vat_period_end_statement/) | 16.0.1.2.2 | | Allow to create the 'VAT Statement'.
[account_vat_period_end_statement](account_vat_period_end_statement/) | 16.0.1.2.4 | | Allow to create the 'VAT Statement'.
[currency_rate_update_boi](currency_rate_update_boi/) | 16.0.1.0.1 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Update exchange rates using www.bancaditalia.it
[l10n_it_abicab](l10n_it_abicab/) | 16.0.1.0.1 | [![Borruso](https://github.com/Borruso.png?size=30px)](https://github.com/Borruso) | Base Bank ABI/CAB codes
[l10n_it_account](l10n_it_account/) | 16.0.1.0.3 | | Modulo base usato come dipendenza di altri moduli contabili
[l10n_it_account_stamp](l10n_it_account_stamp/) | 16.0.1.0.4 | | Gestione automatica dell'imposta di bollo
[l10n_it_account](l10n_it_account/) | 16.0.1.1.0 | | Modulo base usato come dipendenza di altri moduli contabili
[l10n_it_account_stamp](l10n_it_account_stamp/) | 16.0.1.1.0 | | Gestione automatica dell'imposta di bollo
[l10n_it_account_tax_kind](l10n_it_account_tax_kind/) | 16.0.1.0.1 | | Gestione natura delle aliquote IVA
[l10n_it_appointment_code](l10n_it_appointment_code/) | 16.0.1.0.0 | | Aggiunge la tabella dei codici carica da usare nelle dichiarazioni fiscali italiane
[l10n_it_asset_management](l10n_it_asset_management/) | 16.0.1.0.0 | | Gestione Cespiti
[l10n_it_asset_management](l10n_it_asset_management/) | 16.0.1.0.1 | | Gestione Cespiti
[l10n_it_ateco](l10n_it_ateco/) | 16.0.1.1.1 | | ITA - Codici Ateco
[l10n_it_bill_of_entry](l10n_it_bill_of_entry/) | 16.0.1.0.0 | | ITA - Bolle doganali
[l10n_it_central_journal_reportlab](l10n_it_central_journal_reportlab/) | 16.0.1.0.3 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![Borruso](https://github.com/Borruso.png?size=30px)](https://github.com/Borruso) | ITA - Libro giornale - Reportlab
[l10n_it_declaration_of_intent](l10n_it_declaration_of_intent/) | 16.0.1.0.6 | | Gestione dichiarazioni di intento
[l10n_it_delivery_note](l10n_it_delivery_note/) | 16.0.1.4.1 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![aleuffre](https://github.com/aleuffre.png?size=30px)](https://github.com/aleuffre) [![renda-dev](https://github.com/renda-dev.png?size=30px)](https://github.com/renda-dev) | Crea, gestisce e fattura i DDT partendo dalle consegne
[l10n_it_bill_of_entry](l10n_it_bill_of_entry/) | 16.0.1.0.1 | | ITA - Bolle doganali
[l10n_it_central_journal_reportlab](l10n_it_central_journal_reportlab/) | 16.0.1.0.5 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![Borruso](https://github.com/Borruso.png?size=30px)](https://github.com/Borruso) | ITA - Libro giornale - Reportlab
[l10n_it_declaration_of_intent](l10n_it_declaration_of_intent/) | 16.0.1.0.10 | | Gestione dichiarazioni di intento
[l10n_it_delivery_note](l10n_it_delivery_note/) | 16.0.1.4.5 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![aleuffre](https://github.com/aleuffre.png?size=30px)](https://github.com/aleuffre) [![renda-dev](https://github.com/renda-dev.png?size=30px)](https://github.com/renda-dev) | Crea, gestisce e fattura i DDT partendo dalle consegne
[l10n_it_delivery_note_base](l10n_it_delivery_note_base/) | 16.0.1.0.2 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![Borruso](https://github.com/Borruso.png?size=30px)](https://github.com/Borruso) | Crea e gestisce tabelle principali per gestire i DDT
[l10n_it_delivery_note_batch](l10n_it_delivery_note_batch/) | 16.0.1.1.0 | [![MarcoCalcagni](https://github.com/MarcoCalcagni.png?size=30px)](https://github.com/MarcoCalcagni) [![TheMule71](https://github.com/TheMule71.png?size=30px)](https://github.com/TheMule71) [![Borruso](https://github.com/Borruso.png?size=30px)](https://github.com/Borruso) [![aleuffre](https://github.com/aleuffre.png?size=30px)](https://github.com/aleuffre) [![PicchiSeba](https://github.com/PicchiSeba.png?size=30px)](https://github.com/PicchiSeba) [![renda-dev](https://github.com/renda-dev.png?size=30px)](https://github.com/renda-dev) | Crea i DDT partendo da gruppi di prelievi
[l10n_it_delivery_note_order_link](l10n_it_delivery_note_order_link/) | 16.0.1.0.0 | [![andreampiovesana](https://github.com/andreampiovesana.png?size=30px)](https://github.com/andreampiovesana) | Crea collegamento tra i DDT e ordine di vendita/acquisto
[l10n_it_fatturapa](l10n_it_fatturapa/) | 16.0.1.0.6 | | Fatture elettroniche
[l10n_it_fatturapa](l10n_it_fatturapa/) | 16.0.1.2.2 | | Fatture elettroniche
[l10n_it_fatturapa_auto_sale_order](l10n_it_fatturapa_auto_sale_order/) | 16.0.1.0.0 | | Automatically set sale orders as related documents
[l10n_it_fatturapa_export_zip](l10n_it_fatturapa_export_zip/) | 16.0.1.0.0 | [![sergiocorato](https://github.com/sergiocorato.png?size=30px)](https://github.com/sergiocorato) | Permette di esportare in uno ZIP diversi file XML di fatture elettroniche
[l10n_it_fatturapa_import_zip](l10n_it_fatturapa_import_zip/) | 16.0.1.0.3 | | Permette di importare in uno ZIP diversi file XML di fatture elettroniche
[l10n_it_fatturapa_in](l10n_it_fatturapa_in/) | 16.0.1.0.7 | | Ricezione fatture elettroniche
[l10n_it_fatturapa_import_zip](l10n_it_fatturapa_import_zip/) | 16.0.1.1.1 | | Permette di importare in uno ZIP diversi file XML di fatture elettroniche
[l10n_it_fatturapa_import_zip_in_rc](l10n_it_fatturapa_import_zip_in_rc/) | 16.0.1.0.0 | [![SirAionTech](https://github.com/SirAionTech.png?size=30px)](https://github.com/SirAionTech) | Importare fatture elettroniche con inversione contabile da un file ZIP.
[l10n_it_fatturapa_in](l10n_it_fatturapa_in/) | 16.0.1.2.1 | | Ricezione fatture elettroniche
[l10n_it_fatturapa_in_purchase](l10n_it_fatturapa_in_purchase/) | 16.0.1.0.0 | | Modulo ponte tra ricezione fatture elettroniche e acquisti
[l10n_it_fatturapa_in_rc](l10n_it_fatturapa_in_rc/) | 16.0.1.0.0 | [![sergiocorato](https://github.com/sergiocorato.png?size=30px)](https://github.com/sergiocorato) | Modulo ponte tra e-fattura in acquisto e inversione contabile
[l10n_it_fatturapa_out](l10n_it_fatturapa_out/) | 16.0.1.0.20 | | Emissione fatture elettroniche
[l10n_it_fatturapa_out_di](l10n_it_fatturapa_out_di/) | 16.0.1.0.0 | | Dichiarazioni d'intento in fatturapa
[l10n_it_fatturapa_out](l10n_it_fatturapa_out/) | 16.0.1.2.1 | | Emissione fatture elettroniche
[l10n_it_fatturapa_out_di](l10n_it_fatturapa_out_di/) | 16.0.1.0.2 | | Dichiarazioni d'intento in fatturapa
[l10n_it_fatturapa_out_oss](l10n_it_fatturapa_out_oss/) | 16.0.1.0.2 | | OSS in fatturapa
[l10n_it_fatturapa_out_rc](l10n_it_fatturapa_out_rc/) | 16.0.1.0.1 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Integrazione l10n_it_fatturapa_out e l10n_it_reverse_charge
[l10n_it_fatturapa_out_sp](l10n_it_fatturapa_out_sp/) | 16.0.1.0.0 | | Scissione pagamenti in fatturapa
[l10n_it_fatturapa_out_stamp](l10n_it_fatturapa_out_stamp/) | 16.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Modulo ponte tra emissione fatture elettroniche e imposta di bollo
[l10n_it_fatturapa_out_wt](l10n_it_fatturapa_out_wt/) | 16.0.1.0.0 | | Modulo ponte tra emissione fatture elettroniche e ritenute.
[l10n_it_fatturapa_out_stamp](l10n_it_fatturapa_out_stamp/) | 16.0.1.0.1 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Modulo ponte tra emissione fatture elettroniche e imposta di bollo
[l10n_it_fatturapa_out_wt](l10n_it_fatturapa_out_wt/) | 16.0.1.0.1 | | Modulo ponte tra emissione fatture elettroniche e ritenute.
[l10n_it_fatturapa_pec](l10n_it_fatturapa_pec/) | 16.0.1.0.1 | | Invio fatture elettroniche tramite PEC
[l10n_it_fatturapa_sale](l10n_it_fatturapa_sale/) | 16.0.1.0.1 | | Aggiunge alcuni dati per la fatturazione elettronica nell'ordine di vendita
[l10n_it_financial_statements_report](l10n_it_financial_statements_report/) | 16.0.1.0.1 | | Rendicontazione .pdf e .xls per stato patrimoniale e conto economico a sezioni contrapposte
[l10n_it_financial_statement_eu](l10n_it_financial_statement_eu/) | 16.0.1.0.1 | [![mktsrl](https://github.com/mktsrl.png?size=30px)](https://github.com/mktsrl) | ITA - Bilancio UE con XBRL
[l10n_it_financial_statements_report](l10n_it_financial_statements_report/) | 16.0.1.0.2 | | Rendicontazione .pdf e .xls per stato patrimoniale e conto economico a sezioni contrapposte
[l10n_it_fiscal_document_type](l10n_it_fiscal_document_type/) | 16.0.1.0.0 | | ITA - Tipi di documento fiscale per dichiarativi
[l10n_it_fiscal_payment_term](l10n_it_fiscal_payment_term/) | 16.0.1.0.0 | | Condizioni di pagamento delle fatture elettroniche
[l10n_it_fiscalcode](l10n_it_fiscalcode/) | 16.0.1.0.2 | | ITA - Codice fiscale
[l10n_it_fiscalcode](l10n_it_fiscalcode/) | 16.0.1.0.3 | | ITA - Codice fiscale
[l10n_it_fiscalcode_sale](l10n_it_fiscalcode_sale/) | 16.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Mostra il codice fiscale del cliente nella stampa del preventivo
[l10n_it_intrastat](l10n_it_intrastat/) | 16.0.1.0.3 | | Riclassificazione merci e servizi per dichiarazioni Intrastat
[l10n_it_intrastat_statement](l10n_it_intrastat_statement/) | 16.0.1.0.1 | | Dichiarazione Intrastat per l'Agenzia delle Dogane
[l10n_it_intrastat](l10n_it_intrastat/) | 16.0.1.1.0 | | Riclassificazione merci e servizi per dichiarazioni Intrastat
[l10n_it_intrastat_statement](l10n_it_intrastat_statement/) | 16.0.1.0.2 | | Dichiarazione Intrastat per l'Agenzia delle Dogane
[l10n_it_ipa](l10n_it_ipa/) | 16.0.1.0.1 | | ITA - Codice IPA
[l10n_it_payment_reason](l10n_it_payment_reason/) | 16.0.1.0.0 | | Aggiunge la tabella delle causali di pagamento da usare ad esempio nelle ritenute d'acconto
[l10n_it_pec](l10n_it_pec/) | 16.0.1.0.0 | | Aggiunge il campo email PEC al partner
[l10n_it_pos_fiscalcode](l10n_it_pos_fiscalcode/) | 16.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Gestione codice fiscale del cliente all'interno dell'interfaccia del POS
[l10n_it_rea](l10n_it_rea/) | 16.0.1.0.0 | | Gestisce i campi del Repertorio Economico Amministrativo
[l10n_it_reverse_charge](l10n_it_reverse_charge/) | 16.0.1.0.3 | | Inversione contabile
[l10n_it_riba](l10n_it_riba/) | 16.0.1.2.1 | | Ricevute bancarie
[l10n_it_riba](l10n_it_riba/) | 16.0.1.5.1 | | Ricevute bancarie
[l10n_it_sdi_channel](l10n_it_sdi_channel/) | 16.0.1.0.0 | [![sergiocorato](https://github.com/sergiocorato.png?size=30px)](https://github.com/sergiocorato) | Aggiunge il canale di invio/ricezione dei file XML attraverso lo SdI
[l10n_it_split_payment](l10n_it_split_payment/) | 16.0.1.0.0 | | Scissione pagamenti
[l10n_it_vat_payability](l10n_it_vat_payability/) | 16.0.1.0.0 | | ITA - Esigibilità IVA
[l10n_it_vat_registries](l10n_it_vat_registries/) | 16.0.1.2.1 | | ITA - Registri IVA
[l10n_it_vat_registries_rc](l10n_it_vat_registries_rc/) | 16.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Integrazione l10n_it_vat_registries e l10n_it_reverse_charge
[l10n_it_vat_registries_split_payment](l10n_it_vat_registries_split_payment/) | 16.0.1.0.0 | | Modulo di congiunzione tra registri IVA e scissione dei pagamenti
[l10n_it_vat_settlement_date](l10n_it_vat_settlement_date/) | 16.0.1.0.0 | | Settlement date for VAT Statement
[l10n_it_vat_settlement_date_rc](l10n_it_vat_settlement_date_rc/) | 16.0.1.0.0 | | Use VAT Settlement Date in reverse charge.
[l10n_it_vat_statement_communication](l10n_it_vat_statement_communication/) | 16.0.1.0.0 | | Comunicazione liquidazione IVA ed esportazione file xmlconforme alle specifiche dell'Agenzia delle Entrate
[l10n_it_vat_statement_split_payment](l10n_it_vat_statement_split_payment/) | 16.0.1.0.0 | | Migliora la liquidazione dell'IVA tenendo in considerazione la scissione dei pagamenti
[l10n_it_website_portal_fatturapa](l10n_it_website_portal_fatturapa/) | 16.0.1.0.0 | | Add fatturapa fields and checks in frontend user's details
[l10n_it_website_portal_fiscalcode](l10n_it_website_portal_fiscalcode/) | 16.0.1.0.0 | | Add fiscal code to details of frontend user
[l10n_it_website_portal_ipa](l10n_it_website_portal_ipa/) | 16.0.1.0.1 | | Aggiunge l'indice PA (IPA) tra i dettagli dell'utente nel portale.
[l10n_it_website_sale_fiscalcode](l10n_it_website_sale_fiscalcode/) | 16.0.1.0.0 | | Website Sale FiscalCode
[l10n_it_withholding_tax](l10n_it_withholding_tax/) | 16.0.1.1.3 | | ITA - Ritenute d'acconto
[l10n_it_withholding_tax_payment](l10n_it_withholding_tax_payment/) | 16.0.1.0.3 | | Gestisce le ritenute sulle fatture e sui pagamenti
[l10n_it_withholding_tax](l10n_it_withholding_tax/) | 16.0.1.1.5 | | ITA - Ritenute d'acconto
[l10n_it_withholding_tax_financial_report](l10n_it_withholding_tax_financial_report/) | 16.0.1.0.1 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Integrazione Ritenute d'acconto e Rendiconti contabili
[l10n_it_withholding_tax_payment](l10n_it_withholding_tax_payment/) | 16.0.1.1.0 | | Gestisce le ritenute sulle fatture e sui pagamenti
[l10n_it_withholding_tax_reason](l10n_it_withholding_tax_reason/) | 16.0.1.0.0 | | ITA - Causali pagamento per ritenute d'acconto

[//]: # (end addons)
Expand Down
7 changes: 6 additions & 1 deletion account_vat_period_end_statement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ITA - Liquidazione IVA
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d820f9421503ee6751e31e6d7093922aa8ed603272b9e628e776befbf21b9089
!! source digest: sha256:461e006f00588a87705ed02e759c4d52e99c27aef015edec6d5153089d124289
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -182,10 +182,15 @@ Contributors
- Lara Baggio <http://linkgroup.it/>
- Gianmarco Conte <[email protected]>
- Michele Rusticucci <[email protected]>
- Salvo Rapisarda <[email protected]>
- `TAKOBI <https://takobi.online>`__:

- Simone Rubino <[email protected]>

- `Aion Tech <https://aiontech.company/>`__:

- Simone Rubino <[email protected]>

Maintainers
-----------

Expand Down
3 changes: 1 addition & 2 deletions account_vat_period_end_statement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{
"name": "ITA - Liquidazione IVA",
"version": "16.0.1.2.2",
"version": "16.0.1.2.4",
"category": "Localization/Italy",
"summary": "Allow to create the 'VAT Statement'.",
"license": "AGPL-3",
Expand All @@ -19,7 +19,6 @@
"account_tax_balance",
"date_range",
"l10n_it_account",
"l10n_it_fiscalcode",
"web",
],
"data": [
Expand Down
48 changes: 40 additions & 8 deletions account_vat_period_end_statement/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright 2015 Associazione Odoo Italia (<http://www.odoo-italia.org>)
# Copyright 2021 Gianmarco Conte - Dinamiche Aziendali Srl (<www.dinamicheaziendali.it>)
# Copyright 2022 Simone Rubino - TAKOBI
# Copyright 2023 Simone Rubino - Aion Tech
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import math
Expand Down Expand Up @@ -455,6 +456,37 @@ def create_move(self):

return True

def _split_vat_data_payment_term(
self,
payment_term,
move,
statement_date,
end_debit_vat_data,
):
self.ensure_one()
company = self.env.company
currency = company.currency_id
tax_amount = tax_amount_currency = self.authority_vat_amount
untaxed_amount = untaxed_amount_currency = 0
sign = 1 if move.is_inbound(include_receipts=True) else -1
due_list = payment_term._compute_terms(
statement_date,
currency,
company,
tax_amount,
tax_amount_currency,
sign,
untaxed_amount,
untaxed_amount_currency,
)
payment_term_lines = []
for term in due_list:
current_line = end_debit_vat_data.copy()
current_line["credit"] = term["company_amount"]
current_line["date_maturity"] = term["date"]
payment_term_lines.append((0, 0, current_line))
return payment_term_lines

def _add_end_debit_vat_data(self, lines_to_create, move, statement, statement_date):
end_debit_vat_data = self._prepare_account_move_line(
name="Tax Authority VAT",
Expand All @@ -466,15 +498,15 @@ def _add_end_debit_vat_data(self, lines_to_create, move, statement, statement_da
)
if statement.authority_vat_amount > 0:
end_debit_vat_data["credit"] = math.fabs(statement.authority_vat_amount)
if statement.payment_term_id:
due_list = statement.payment_term_id.compute(
statement.authority_vat_amount, statement_date
payment_term = statement.payment_term_id
if payment_term:
payment_term_lines = self._split_vat_data_payment_term(
payment_term,
move,
statement_date,
end_debit_vat_data,
)
for term in due_list:
current_line = end_debit_vat_data
current_line["credit"] = term[1]
current_line["date_maturity"] = term[0]
lines_to_create.append((0, 0, current_line))
lines_to_create.extend(payment_term_lines)
else:
lines_to_create.append((0, 0, end_debit_vat_data))
elif statement.authority_vat_amount < 0:
Expand Down
3 changes: 3 additions & 0 deletions account_vat_period_end_statement/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
- Lara Baggio \<<http://linkgroup.it/>\>
- Gianmarco Conte \<<[email protected]>\>
- Michele Rusticucci \<<[email protected]>\>
- Salvo Rapisarda \<<[email protected]>\>
- [TAKOBI](https://takobi.online):
- Simone Rubino \<<[email protected]>\>
- [Aion Tech](https://aiontech.company/):
- Simone Rubino \<<[email protected]>\>
Loading

0 comments on commit fd1b1f4

Please sign in to comment.