Skip to content

Commit 9246296

Browse files
committed
[IMP] l10n_it_financial_statement_eu: all companies are updated
1 parent 2a70450 commit 9246296

4 files changed

Lines changed: 28 additions & 30 deletions

File tree

l10n_it_financial_statement_eu/README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ ITA - Bilancio UE con XBRL
1010
!! source digest: sha256:e9f4132ff786a5ff4500e2c4e2c971e576670bf8409d060b61ae403f626bcc13
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
13-
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1414
:target: https://odoo-community.org/page/development-status
15-
:alt: Alpha
15+
:alt: Beta
1616
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
@@ -76,11 +76,6 @@ available the following features:
7676
re-elaborations and for the transfer of the EU financial statements
7777
to the accountant)
7878

79-
.. IMPORTANT::
80-
This is an alpha version, the data model and design can change at any time without warning.
81-
Only for development or testing purpose, do not use in production.
82-
`More details on development status <https://odoo-community.org/page/development-status>`_
83-
8479
**Table of contents**
8580

8681
.. contents::

l10n_it_financial_statement_eu/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "ITA - Bilancio UE con XBRL",
88
"version": "18.0.1.0.0",
99
"category": "Localization/Italy",
10-
"development_status": "Alpha",
10+
"development_status": "Beta",
1111
"license": "AGPL-3",
1212
"author": "MKT Srl, Odoo Community Association (OCA)",
1313
"website": "https://github.com/OCA/l10n-italy",

l10n_it_financial_statement_eu/models/financial_statement_eu.py

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,30 @@ def financial_statement_eu_account_association(
109109
credit_fse_id,
110110
force_update,
111111
):
112-
acc_ids = self.env["account.account"].search([("code", "=ilike", acc_code)])
113-
for acc_id in acc_ids:
114-
if (
115-
(not acc_id.financial_statement_eu_debit_id)
116-
and (not acc_id.financial_statement_eu_credit_id)
117-
) or force_update:
118-
if (acc_id.financial_statement_eu_debit_id.id != debit_fse_id) or (
119-
acc_id.financial_statement_eu_credit_id.id != credit_fse_id
120-
):
121-
acc_id.write(
122-
{
123-
"financial_statement_eu_debit_id": debit_fse_id,
124-
"financial_statement_eu_credit_id": credit_fse_id,
125-
}
126-
)
112+
for company in self.env["res.company"].search([]):
113+
acc_ids = (
114+
self.env["account.account"]
115+
.with_company(company)
116+
.search(
117+
[
118+
("code", "=ilike", acc_code),
119+
]
120+
)
121+
)
122+
for acc_id in acc_ids:
123+
if (
124+
(not acc_id.financial_statement_eu_debit_id)
125+
and (not acc_id.financial_statement_eu_credit_id)
126+
) or force_update:
127+
if (acc_id.financial_statement_eu_debit_id.id != debit_fse_id) or (
128+
acc_id.financial_statement_eu_credit_id.id != credit_fse_id
129+
):
130+
acc_id.write(
131+
{
132+
"financial_statement_eu_debit_id": debit_fse_id,
133+
"financial_statement_eu_credit_id": credit_fse_id,
134+
}
135+
)
127136

128137
@api.model
129138
def financial_statement_eu_account_assoc_code(

l10n_it_financial_statement_eu/static/description/index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">ITA - Bilancio UE con XBRL</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:e9f4132ff786a5ff4500e2c4e2c971e576670bf8409d060b61ae403f626bcc13
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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_financial_statement_eu"><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_financial_statement_eu"><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>
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/18.0/l10n_it_financial_statement_eu"><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_financial_statement_eu"><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>
373373
<p><strong>Italiano</strong></p>
374374
<p>In Odoo è presente il piano dei conti tradizionale e le varie
375375
registrazioni contabili con gli importi ma non è presente una struttura
@@ -415,12 +415,6 @@ <h1 class="title">ITA - Bilancio UE con XBRL</h1>
415415
re-elaborations and for the transfer of the EU financial statements
416416
to the accountant)</li>
417417
</ul>
418-
<div class="admonition important">
419-
<p class="first admonition-title">Important</p>
420-
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
421-
Only for development or testing purpose, do not use in production.
422-
<a class="reference external" href="https://odoo-community.org/page/development-status">More details on development status</a></p>
423-
</div>
424418
<p><strong>Table of contents</strong></p>
425419
<div class="contents local topic" id="contents">
426420
<ul class="simple">

0 commit comments

Comments
 (0)