odoo-addon-account-financial-report 17.0.1.6.2.1__py3-none-any.whl → 17.0.1.6.10__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.
Potentially problematic release.
This version of odoo-addon-account-financial-report might be problematic. Click here for more details.
- odoo/addons/account_financial_report/README.rst +6 -2
- odoo/addons/account_financial_report/__manifest__.py +1 -1
- odoo/addons/account_financial_report/i18n/account_financial_report.pot +9 -0
- odoo/addons/account_financial_report/i18n/ar.po +9 -0
- odoo/addons/account_financial_report/i18n/ca.po +9 -0
- odoo/addons/account_financial_report/i18n/de.po +9 -0
- odoo/addons/account_financial_report/i18n/es.po +9 -0
- odoo/addons/account_financial_report/i18n/es_AR.po +9 -0
- odoo/addons/account_financial_report/i18n/es_MX.po +9 -0
- odoo/addons/account_financial_report/i18n/fr.po +130 -490
- odoo/addons/account_financial_report/i18n/fr_CH.po +107 -426
- odoo/addons/account_financial_report/i18n/hr.po +9 -0
- odoo/addons/account_financial_report/i18n/hr_HR.po +9 -0
- odoo/addons/account_financial_report/i18n/it.po +13 -2
- odoo/addons/account_financial_report/i18n/ja.po +9 -0
- odoo/addons/account_financial_report/i18n/nl.po +9 -0
- odoo/addons/account_financial_report/i18n/nl_NL.po +9 -0
- odoo/addons/account_financial_report/i18n/pt.po +9 -0
- odoo/addons/account_financial_report/i18n/pt_BR.po +9 -0
- odoo/addons/account_financial_report/i18n/ro.po +9 -0
- odoo/addons/account_financial_report/i18n/sv.po +9 -0
- odoo/addons/account_financial_report/i18n/tr.po +9 -0
- odoo/addons/account_financial_report/report/general_ledger.py +4 -3
- odoo/addons/account_financial_report/report/general_ledger_xlsx.py +12 -10
- odoo/addons/account_financial_report/report/journal_ledger.py +30 -31
- odoo/addons/account_financial_report/report/templates/general_ledger.xml +40 -22
- odoo/addons/account_financial_report/report/templates/trial_balance.xml +2 -2
- odoo/addons/account_financial_report/report/trial_balance.py +20 -1
- odoo/addons/account_financial_report/static/description/index.html +22 -16
- {odoo_addon_account_financial_report-17.0.1.6.2.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.10.dist-info}/METADATA +7 -3
- {odoo_addon_account_financial_report-17.0.1.6.2.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.10.dist-info}/RECORD +33 -34
- odoo/addons/account_financial_report/i18n/fr_FR.po +0 -2094
- {odoo_addon_account_financial_report-17.0.1.6.2.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.10.dist-info}/WHEEL +0 -0
- {odoo_addon_account_financial_report-17.0.1.6.2.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.10.dist-info}/top_level.txt +0 -0
|
@@ -1743,6 +1743,15 @@ msgstr ""
|
|
|
1743
1743
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1744
1744
|
msgstr "Razina strukture za filtriranje mora biti ve??a od 0."
|
|
1745
1745
|
|
|
1746
|
+
#. module: account_financial_report
|
|
1747
|
+
#. odoo-python
|
|
1748
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1749
|
+
#, python-format
|
|
1750
|
+
msgid ""
|
|
1751
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1752
|
+
"create some child group of %s."
|
|
1753
|
+
msgstr ""
|
|
1754
|
+
|
|
1746
1755
|
#. module: account_financial_report
|
|
1747
1756
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1748
1757
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1740,6 +1740,15 @@ msgstr ""
|
|
|
1740
1740
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1741
1741
|
msgstr ""
|
|
1742
1742
|
|
|
1743
|
+
#. module: account_financial_report
|
|
1744
|
+
#. odoo-python
|
|
1745
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1746
|
+
#, python-format
|
|
1747
|
+
msgid ""
|
|
1748
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1749
|
+
"create some child group of %s."
|
|
1750
|
+
msgstr ""
|
|
1751
|
+
|
|
1743
1752
|
#. module: account_financial_report
|
|
1744
1753
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1745
1754
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -7,7 +7,7 @@ msgstr ""
|
|
|
7
7
|
"Project-Id-Version: Odoo Server 12.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"POT-Creation-Date: 2019-06-03 12:07+0000\n"
|
|
10
|
-
"PO-Revision-Date:
|
|
10
|
+
"PO-Revision-Date: 2025-05-14 09:23+0000\n"
|
|
11
11
|
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
|
12
12
|
"Language-Team: \n"
|
|
13
13
|
"Language: it\n"
|
|
@@ -15,7 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
16
|
"Content-Transfer-Encoding: 8bit\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
18
|
-
"X-Generator: Weblate 5.
|
|
18
|
+
"X-Generator: Weblate 5.10.4\n"
|
|
19
19
|
|
|
20
20
|
#. module: account_financial_report
|
|
21
21
|
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_lines_header
|
|
@@ -1776,6 +1776,17 @@ msgstr ""
|
|
|
1776
1776
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1777
1777
|
msgstr "Il livello gerarchico da filtrare deve essere maggiore di 0."
|
|
1778
1778
|
|
|
1779
|
+
#. module: account_financial_report
|
|
1780
|
+
#. odoo-python
|
|
1781
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1782
|
+
#, python-format
|
|
1783
|
+
msgid ""
|
|
1784
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1785
|
+
"create some child group of %s."
|
|
1786
|
+
msgstr ""
|
|
1787
|
+
"C'è un problema nella struttura dei gruppi contabilità. Serve creare alcuni "
|
|
1788
|
+
"figli del gruppo %s."
|
|
1789
|
+
|
|
1779
1790
|
#. module: account_financial_report
|
|
1780
1791
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1781
1792
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1733,6 +1733,15 @@ msgstr ""
|
|
|
1733
1733
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1734
1734
|
msgstr ""
|
|
1735
1735
|
|
|
1736
|
+
#. module: account_financial_report
|
|
1737
|
+
#. odoo-python
|
|
1738
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1739
|
+
#, python-format
|
|
1740
|
+
msgid ""
|
|
1741
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1742
|
+
"create some child group of %s."
|
|
1743
|
+
msgstr ""
|
|
1744
|
+
|
|
1736
1745
|
#. module: account_financial_report
|
|
1737
1746
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1738
1747
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1763,6 +1763,15 @@ msgid "The hierarchy level to filter on must be greater than 0."
|
|
|
1763
1763
|
msgstr ""
|
|
1764
1764
|
"Het hi??rarchieniveau waarop gefilterd moet worden, moet groter zijn dan 0."
|
|
1765
1765
|
|
|
1766
|
+
#. module: account_financial_report
|
|
1767
|
+
#. odoo-python
|
|
1768
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1769
|
+
#, python-format
|
|
1770
|
+
msgid ""
|
|
1771
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1772
|
+
"create some child group of %s."
|
|
1773
|
+
msgstr ""
|
|
1774
|
+
|
|
1766
1775
|
#. module: account_financial_report
|
|
1767
1776
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1768
1777
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1739,6 +1739,15 @@ msgstr ""
|
|
|
1739
1739
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1740
1740
|
msgstr ""
|
|
1741
1741
|
|
|
1742
|
+
#. module: account_financial_report
|
|
1743
|
+
#. odoo-python
|
|
1744
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1745
|
+
#, python-format
|
|
1746
|
+
msgid ""
|
|
1747
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1748
|
+
"create some child group of %s."
|
|
1749
|
+
msgstr ""
|
|
1750
|
+
|
|
1742
1751
|
#. module: account_financial_report
|
|
1743
1752
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1744
1753
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1762,6 +1762,15 @@ msgstr ""
|
|
|
1762
1762
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1763
1763
|
msgstr "O nível hierárquico a filtrar deve ser superior a 0."
|
|
1764
1764
|
|
|
1765
|
+
#. module: account_financial_report
|
|
1766
|
+
#. odoo-python
|
|
1767
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1768
|
+
#, python-format
|
|
1769
|
+
msgid ""
|
|
1770
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1771
|
+
"create some child group of %s."
|
|
1772
|
+
msgstr ""
|
|
1773
|
+
|
|
1765
1774
|
#. module: account_financial_report
|
|
1766
1775
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1767
1776
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1760,6 +1760,15 @@ msgstr ""
|
|
|
1760
1760
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1761
1761
|
msgstr "O filtro de n??vel hier??rquico deve ser maior que zero."
|
|
1762
1762
|
|
|
1763
|
+
#. module: account_financial_report
|
|
1764
|
+
#. odoo-python
|
|
1765
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1766
|
+
#, python-format
|
|
1767
|
+
msgid ""
|
|
1768
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1769
|
+
"create some child group of %s."
|
|
1770
|
+
msgstr ""
|
|
1771
|
+
|
|
1763
1772
|
#. module: account_financial_report
|
|
1764
1773
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1765
1774
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1748,6 +1748,15 @@ msgstr ""
|
|
|
1748
1748
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1749
1749
|
msgstr "Nivelul de ierarhie de filtrat trebuie s?? fie mai mare de 0."
|
|
1750
1750
|
|
|
1751
|
+
#. module: account_financial_report
|
|
1752
|
+
#. odoo-python
|
|
1753
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1754
|
+
#, python-format
|
|
1755
|
+
msgid ""
|
|
1756
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1757
|
+
"create some child group of %s."
|
|
1758
|
+
msgstr ""
|
|
1759
|
+
|
|
1751
1760
|
#. module: account_financial_report
|
|
1752
1761
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1753
1762
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1768,6 +1768,15 @@ msgstr ""
|
|
|
1768
1768
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1769
1769
|
msgstr "Hierarkinivån att filtrera på måste vara större än 0."
|
|
1770
1770
|
|
|
1771
|
+
#. module: account_financial_report
|
|
1772
|
+
#. odoo-python
|
|
1773
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1774
|
+
#, python-format
|
|
1775
|
+
msgid ""
|
|
1776
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1777
|
+
"create some child group of %s."
|
|
1778
|
+
msgstr ""
|
|
1779
|
+
|
|
1771
1780
|
#. module: account_financial_report
|
|
1772
1781
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1773
1782
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -1747,6 +1747,15 @@ msgstr ""
|
|
|
1747
1747
|
msgid "The hierarchy level to filter on must be greater than 0."
|
|
1748
1748
|
msgstr ""
|
|
1749
1749
|
|
|
1750
|
+
#. module: account_financial_report
|
|
1751
|
+
#. odoo-python
|
|
1752
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1753
|
+
#, python-format
|
|
1754
|
+
msgid ""
|
|
1755
|
+
"There is a problem in the structure of the account groups. You may need to "
|
|
1756
|
+
"create some child group of %s."
|
|
1757
|
+
msgstr ""
|
|
1758
|
+
|
|
1750
1759
|
#. module: account_financial_report
|
|
1751
1760
|
#: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
|
|
1752
1761
|
msgid "This domain will be used to select specific domain for Journal Items"
|
|
@@ -20,7 +20,8 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
20
20
|
analytic_accounts = self.env["account.analytic.account"].browse(account_ids)
|
|
21
21
|
analytic_data = {}
|
|
22
22
|
for account in analytic_accounts:
|
|
23
|
-
|
|
23
|
+
name = f"[{account.code}] {account.name}" if account.code else account.name
|
|
24
|
+
analytic_data.update({account.id: {"name": name}})
|
|
24
25
|
return analytic_data
|
|
25
26
|
|
|
26
27
|
def _get_taxes_data(self, taxes_ids):
|
|
@@ -470,8 +471,8 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
470
471
|
journal_ids.add(move_line["journal_id"][0])
|
|
471
472
|
for tax_id in move_line["tax_ids"]:
|
|
472
473
|
taxes_ids.add(tax_id)
|
|
473
|
-
for
|
|
474
|
-
analytic_ids.
|
|
474
|
+
for ids in (move_line["analytic_distribution"] or {}).keys():
|
|
475
|
+
analytic_ids.update(map(int, ids.split(",")))
|
|
475
476
|
if move_line["full_reconcile_id"]:
|
|
476
477
|
rec_id = move_line["full_reconcile_id"][0]
|
|
477
478
|
if rec_id not in full_reconcile_ids:
|
|
@@ -195,16 +195,18 @@ class GeneralLedgerXslx(models.AbstractModel):
|
|
|
195
195
|
taxes_description += taxes_data[tax_id]["tax_name"] + " "
|
|
196
196
|
if line["tax_line_id"]:
|
|
197
197
|
taxes_description += line["tax_line_id"][1]
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
198
|
+
analytic_list = []
|
|
199
|
+
for account_ids, percentage in line[
|
|
200
|
+
"analytic_distribution"
|
|
201
|
+
].items():
|
|
202
|
+
for account_id in account_ids.split(","):
|
|
203
|
+
name = analytic_data[int(account_id)]["name"]
|
|
204
|
+
if percentage < 100:
|
|
205
|
+
analytic_list.append(f"{name} {int(percentage)}%")
|
|
206
|
+
else:
|
|
207
|
+
analytic_list.append(name)
|
|
208
|
+
analytic_distribution = ", ".join(analytic_list)
|
|
209
|
+
|
|
208
210
|
line.update(
|
|
209
211
|
{
|
|
210
212
|
"taxes_description": taxes_description,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import itertools
|
|
5
5
|
import operator
|
|
6
|
+
from collections import defaultdict
|
|
6
7
|
|
|
7
8
|
from odoo import models
|
|
8
9
|
|
|
@@ -181,13 +182,23 @@ class JournalLedgerReport(models.AbstractModel):
|
|
|
181
182
|
return {"move_line_ids": tuple(move_lines.ids)}
|
|
182
183
|
|
|
183
184
|
def _get_move_lines(self, move_ids, wizard, journal_ids):
|
|
184
|
-
move_lines =
|
|
185
|
-
self.
|
|
186
|
-
|
|
185
|
+
move_lines = (
|
|
186
|
+
self.env["account.move.line"]
|
|
187
|
+
.with_context(prefetch_fields=False)
|
|
188
|
+
.search(
|
|
189
|
+
self._get_move_lines_domain(move_ids, wizard, journal_ids),
|
|
190
|
+
order=self._get_move_lines_order(move_ids, wizard, journal_ids),
|
|
191
|
+
)
|
|
187
192
|
)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
# Get the exigible move lines ids instead of the recordset to increase
|
|
194
|
+
# performance with a large number of journal items
|
|
195
|
+
move_lines_exigible_ids = set(
|
|
196
|
+
self.env["account.move.line"]
|
|
197
|
+
.search(
|
|
198
|
+
self._get_move_lines_domain(move_ids, wizard, journal_ids)
|
|
199
|
+
+ self.env["account.move.line"]._get_tax_exigible_domain(),
|
|
200
|
+
)
|
|
201
|
+
.ids
|
|
191
202
|
)
|
|
192
203
|
move_line_ids_taxes_data = {}
|
|
193
204
|
if move_lines:
|
|
@@ -209,36 +220,24 @@ class JournalLedgerReport(models.AbstractModel):
|
|
|
209
220
|
"description": tax_description,
|
|
210
221
|
}
|
|
211
222
|
Move_Lines = {}
|
|
212
|
-
accounts = self.env["account.account"]
|
|
213
|
-
partners = self.env["res.partner"]
|
|
214
|
-
currencies = self.env["res.currency"]
|
|
215
|
-
tax_lines = self.env["account.tax"]
|
|
216
223
|
auto_sequence = len(move_ids)
|
|
224
|
+
Move_Lines = defaultdict(list)
|
|
217
225
|
for ml in move_lines:
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if ml.partner_id not in partners:
|
|
221
|
-
partners |= ml.partner_id
|
|
222
|
-
if ml.currency_id not in currencies:
|
|
223
|
-
currencies |= ml.currency_id
|
|
224
|
-
if ml.tax_line_id not in tax_lines:
|
|
225
|
-
tax_lines |= ml.tax_line_id
|
|
226
|
-
if ml.move_id.id not in Move_Lines.keys():
|
|
227
|
-
Move_Lines[ml.move_id.id] = []
|
|
226
|
+
move_id = ml.move_id.id
|
|
227
|
+
if move_id not in Move_Lines:
|
|
228
228
|
auto_sequence -= 1
|
|
229
|
-
taxes = (
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
Move_Lines[ml.move_id.id].append(
|
|
229
|
+
taxes = move_line_ids_taxes_data.get(ml.id, {})
|
|
230
|
+
# Check the exigibility of the move line by id
|
|
231
|
+
# this way we avoid the recreation of the recordset which affects to the
|
|
232
|
+
# performance in the case of a large number of journal items
|
|
233
|
+
exigible = ml.id in move_lines_exigible_ids
|
|
234
|
+
Move_Lines[move_id].append(
|
|
236
235
|
self._get_move_lines_data(ml, wizard, taxes, auto_sequence, exigible)
|
|
237
236
|
)
|
|
238
|
-
account_ids_data = self._get_account_data(
|
|
239
|
-
partner_ids_data = self._get_partner_data(
|
|
240
|
-
currency_ids_data = self._get_currency_data(
|
|
241
|
-
tax_line_ids_data = self._get_tax_line_data(
|
|
237
|
+
account_ids_data = self._get_account_data(move_lines.account_id)
|
|
238
|
+
partner_ids_data = self._get_partner_data(move_lines.partner_id)
|
|
239
|
+
currency_ids_data = self._get_currency_data(move_lines.currency_id)
|
|
240
|
+
tax_line_ids_data = self._get_tax_line_data(move_lines.tax_line_id)
|
|
242
241
|
return (
|
|
243
242
|
move_lines.ids,
|
|
244
243
|
Move_Lines,
|
|
@@ -475,29 +475,47 @@
|
|
|
475
475
|
<!--## cost_center-->
|
|
476
476
|
<t t-if="show_cost_center">
|
|
477
477
|
<div class="act_as_cell left">
|
|
478
|
-
<
|
|
479
|
-
t
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
<
|
|
484
|
-
t-
|
|
485
|
-
|
|
486
|
-
|
|
478
|
+
<ul style="list-style: none; padding: 0; margin: 0;">
|
|
479
|
+
<t
|
|
480
|
+
t-foreach="line['analytic_distribution'].items()"
|
|
481
|
+
t-as="analytic_entry"
|
|
482
|
+
>
|
|
483
|
+
<t
|
|
484
|
+
t-set="analytic_ids"
|
|
485
|
+
t-value="analytic_entry[0]"
|
|
486
|
+
/>
|
|
487
|
+
<t t-set="percentage" t-value="analytic_entry[1]" />
|
|
488
|
+
<t
|
|
489
|
+
t-foreach="analytic_ids.split(',')"
|
|
490
|
+
t-as="analytic_id"
|
|
487
491
|
>
|
|
488
|
-
<
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
492
|
+
<li style="padding: 2px 0;">
|
|
493
|
+
<span
|
|
494
|
+
t-att-res-id="analytic_id"
|
|
495
|
+
res-model="account.analytic.account"
|
|
496
|
+
view-type="form"
|
|
497
|
+
>
|
|
498
|
+
<t
|
|
499
|
+
t-set="analytic_id"
|
|
500
|
+
t-value="analytic_id.strip()"
|
|
501
|
+
/>
|
|
502
|
+
<t
|
|
503
|
+
t-set="account_name"
|
|
504
|
+
t-value="o._get_atr_from_dict(int(analytic_id), analytic_data, 'name')"
|
|
505
|
+
/>
|
|
506
|
+
<t t-if="percentage < 100">
|
|
507
|
+
<t
|
|
508
|
+
t-out="account_name + ' (' + str(percentage) + '%)'"
|
|
509
|
+
/>
|
|
510
|
+
</t>
|
|
511
|
+
<t t-else="">
|
|
512
|
+
<t t-out="account_name" />
|
|
513
|
+
</t>
|
|
514
|
+
</span>
|
|
515
|
+
</li>
|
|
516
|
+
</t>
|
|
517
|
+
</t>
|
|
518
|
+
</ul>
|
|
501
519
|
</div>
|
|
502
520
|
</t>
|
|
503
521
|
<t t-if="show_analytic_tags">
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
<t
|
|
53
53
|
t-set="aml_domain_extra"
|
|
54
54
|
t-if="grouped_item['id'] > 0"
|
|
55
|
-
t-value="[('
|
|
55
|
+
t-value="[('analytic_account_ids', '=', grouped_item['id'])]"
|
|
56
56
|
/>
|
|
57
57
|
<t
|
|
58
58
|
t-set="aml_domain_extra"
|
|
59
59
|
t-else=""
|
|
60
|
-
t-value="[('
|
|
60
|
+
t-value="[('analytic_account_ids', '=', False)]"
|
|
61
61
|
/>
|
|
62
62
|
<div class="act_as_table data_table" style="width: 100%;">
|
|
63
63
|
<t
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
from odoo import _, api, models
|
|
8
|
+
from odoo.exceptions import UserError
|
|
8
9
|
from odoo.tools.float_utils import float_is_zero
|
|
9
10
|
|
|
10
11
|
|
|
@@ -687,8 +688,26 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
687
688
|
return trial_balance, total_amount_grouped
|
|
688
689
|
|
|
689
690
|
def _get_hierarchy_groups(self, group_ids, groups_data, foreign_currency):
|
|
690
|
-
|
|
691
|
+
processed_groups = []
|
|
692
|
+
# Sort groups so that parent groups are processed before child groups
|
|
693
|
+
groups = (
|
|
694
|
+
self.env["account.group"]
|
|
695
|
+
.browse(group_ids)
|
|
696
|
+
.sorted(key=lambda x: x.complete_code)
|
|
697
|
+
)
|
|
698
|
+
for group in groups:
|
|
699
|
+
group_id = group.id
|
|
691
700
|
parent_id = groups_data[group_id]["parent_id"]
|
|
701
|
+
if group_id in processed_groups:
|
|
702
|
+
raise UserError(
|
|
703
|
+
_(
|
|
704
|
+
"There is a problem in the structure of the account groups. "
|
|
705
|
+
"You may need to create some child group of %s."
|
|
706
|
+
)
|
|
707
|
+
% groups_data[group_id]["name"]
|
|
708
|
+
)
|
|
709
|
+
else:
|
|
710
|
+
processed_groups.append(parent_id)
|
|
692
711
|
while parent_id:
|
|
693
712
|
if parent_id not in groups_data.keys():
|
|
694
713
|
group = self.env["account.group"].browse(parent_id)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
5
|
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
|
6
|
-
<title>
|
|
6
|
+
<title>README.rst</title>
|
|
7
7
|
<style type="text/css">
|
|
8
8
|
|
|
9
9
|
/*
|
|
@@ -360,16 +360,21 @@ ul.auto-toc {
|
|
|
360
360
|
</style>
|
|
361
361
|
</head>
|
|
362
362
|
<body>
|
|
363
|
-
<div class="document"
|
|
364
|
-
<h1 class="title">Account Financial Reports</h1>
|
|
363
|
+
<div class="document">
|
|
365
364
|
|
|
365
|
+
|
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
|
368
|
+
</a>
|
|
369
|
+
<div class="section" id="account-financial-reports">
|
|
370
|
+
<h1>Account Financial Reports</h1>
|
|
366
371
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
367
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
373
|
!! changes will be overwritten. !!
|
|
369
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:a553ccd80e02352e7263d6c22ac828bf5c217d437228b27a5358c2a1e7835f5a
|
|
371
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
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/
|
|
377
|
+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/17.0/account_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_financial_report"><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/account-financial-reporting&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
378
|
<p>This module adds a set of financial reports. They are accessible under
|
|
374
379
|
Invoicing / Reporting / OCA accounting reports.</p>
|
|
375
380
|
<ul class="simple">
|
|
@@ -410,7 +415,7 @@ Partner Balance. For further information, check CONFIGURE.rst</p>
|
|
|
410
415
|
</ul>
|
|
411
416
|
</div>
|
|
412
417
|
<div class="section" id="configuration">
|
|
413
|
-
<
|
|
418
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
|
|
414
419
|
<p>To configure dynamic intervals for Aged Partner Balance you need to:</p>
|
|
415
420
|
<p>Go on ‘Settings’ -> ‘Invoicing’ -> ‘OCA Aged Report Configuration’.</p>
|
|
416
421
|
<p>Click on option ‘Configurations’ and create new record.</p>
|
|
@@ -431,7 +436,7 @@ per company in:</p>
|
|
|
431
436
|
<p>‘Settings’ -> ‘Invoicing’ -> ‘OCA Aged Report Configuration’.</p>
|
|
432
437
|
</div>
|
|
433
438
|
<div class="section" id="known-issues-roadmap">
|
|
434
|
-
<
|
|
439
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h2>
|
|
435
440
|
<ul class="simple">
|
|
436
441
|
<li>‘VAT Report’ is valid only for cases where it’s met that for each Tax
|
|
437
442
|
defined: all the “Account tags” of all the ‘Repartition for Invoices’
|
|
@@ -442,16 +447,16 @@ Moves” field in a wizard</li>
|
|
|
442
447
|
</ul>
|
|
443
448
|
</div>
|
|
444
449
|
<div class="section" id="changelog">
|
|
445
|
-
<
|
|
450
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Changelog</a></h2>
|
|
446
451
|
<div class="section" id="section-1">
|
|
447
|
-
<
|
|
452
|
+
<h3><a class="toc-backref" href="#toc-entry-4">11.0.2.5.0 (2019-04-26)</a></h3>
|
|
448
453
|
<ul class="simple">
|
|
449
454
|
<li>In the Trial Balance you have an option to hide parent hierarchy
|
|
450
455
|
levels</li>
|
|
451
456
|
</ul>
|
|
452
457
|
</div>
|
|
453
458
|
<div class="section" id="section-2">
|
|
454
|
-
<
|
|
459
|
+
<h3><a class="toc-backref" href="#toc-entry-5">11.0.2.4.1 (2019-01-08)</a></h3>
|
|
455
460
|
<ul class="simple">
|
|
456
461
|
<li>Handle better multicompany behaviour</li>
|
|
457
462
|
<li>Improve how title appears in the reports</li>
|
|
@@ -459,7 +464,7 @@ levels</li>
|
|
|
459
464
|
</ul>
|
|
460
465
|
</div>
|
|
461
466
|
<div class="section" id="section-3">
|
|
462
|
-
<
|
|
467
|
+
<h3><a class="toc-backref" href="#toc-entry-6">11.0.2.3.1 (2018-11-29)</a></h3>
|
|
463
468
|
<ul class="simple">
|
|
464
469
|
<li>In the Trial Balance you can apply a filter by hierarchy levels</li>
|
|
465
470
|
<li>In the General Ledger you can apply a filter by Analytic Tag</li>
|
|
@@ -468,7 +473,7 @@ levels</li>
|
|
|
468
473
|
</div>
|
|
469
474
|
</div>
|
|
470
475
|
<div class="section" id="bug-tracker">
|
|
471
|
-
<
|
|
476
|
+
<h2><a class="toc-backref" href="#toc-entry-7">Bug Tracker</a></h2>
|
|
472
477
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
|
|
473
478
|
In case of trouble, please check there if your issue has already been reported.
|
|
474
479
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
@@ -476,9 +481,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
476
481
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
477
482
|
</div>
|
|
478
483
|
<div class="section" id="credits">
|
|
479
|
-
<
|
|
484
|
+
<h2><a class="toc-backref" href="#toc-entry-8">Credits</a></h2>
|
|
480
485
|
<div class="section" id="authors">
|
|
481
|
-
<
|
|
486
|
+
<h3><a class="toc-backref" href="#toc-entry-9">Authors</a></h3>
|
|
482
487
|
<ul class="simple">
|
|
483
488
|
<li>Camptocamp</li>
|
|
484
489
|
<li>initOS GmbH</li>
|
|
@@ -487,7 +492,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
487
492
|
</ul>
|
|
488
493
|
</div>
|
|
489
494
|
<div class="section" id="contributors">
|
|
490
|
-
<
|
|
495
|
+
<h3><a class="toc-backref" href="#toc-entry-10">Contributors</a></h3>
|
|
491
496
|
<ul class="simple">
|
|
492
497
|
<li>Jordi Ballester <<a class="reference external" href="mailto:jordi.ballester@forgeflow.com">jordi.ballester@forgeflow.com</a>></li>
|
|
493
498
|
<li>Yannick Vaucher <<a class="reference external" href="mailto:yannick.vaucher@camptocamp.com">yannick.vaucher@camptocamp.com</a>></li>
|
|
@@ -530,7 +535,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
530
535
|
in April 2016.</p>
|
|
531
536
|
</div>
|
|
532
537
|
<div class="section" id="maintainers">
|
|
533
|
-
<
|
|
538
|
+
<h3><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h3>
|
|
534
539
|
<p>This module is maintained by the OCA.</p>
|
|
535
540
|
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
536
541
|
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
@@ -543,5 +548,6 @@ promote its widespread use.</p>
|
|
|
543
548
|
</div>
|
|
544
549
|
</div>
|
|
545
550
|
</div>
|
|
551
|
+
</div>
|
|
546
552
|
</body>
|
|
547
553
|
</html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_financial_report
|
|
3
|
-
Version: 17.0.1.6.
|
|
3
|
+
Version: 17.0.1.6.10
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-date_range>=17.0dev,<17.1dev
|
|
6
6
|
Requires-Dist: odoo-addon-report_xlsx>=17.0dev,<17.1dev
|
|
@@ -15,6 +15,10 @@ Classifier: Framework :: Odoo
|
|
|
15
15
|
Classifier: Framework :: Odoo :: 17.0
|
|
16
16
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
17
17
|
|
|
18
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
19
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
20
|
+
:alt: Odoo Community Association
|
|
21
|
+
|
|
18
22
|
=========================
|
|
19
23
|
Account Financial Reports
|
|
20
24
|
=========================
|
|
@@ -24,13 +28,13 @@ Account Financial Reports
|
|
|
24
28
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
29
|
!! changes will be overwritten. !!
|
|
26
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
31
|
+
!! source digest: sha256:a553ccd80e02352e7263d6c22ac828bf5c217d437228b27a5358c2a1e7835f5a
|
|
28
32
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
33
|
|
|
30
34
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
31
35
|
:target: https://odoo-community.org/page/development-status
|
|
32
36
|
:alt: Beta
|
|
33
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
|
37
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
34
38
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
35
39
|
:alt: License: AGPL-3
|
|
36
40
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github
|