odoo-addon-account-financial-report 17.0.1.7.0.1__py3-none-any.whl → 17.0.1.8.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.
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 +1 -1
- odoo/addons/account_financial_report/__manifest__.py +1 -1
- odoo/addons/account_financial_report/i18n/account_financial_report.pot +16 -0
- odoo/addons/account_financial_report/i18n/it.po +3 -3
- odoo/addons/account_financial_report/report/abstract_report.py +6 -0
- odoo/addons/account_financial_report/report/aged_partner_balance.py +18 -12
- odoo/addons/account_financial_report/report/general_ledger.py +30 -26
- odoo/addons/account_financial_report/report/journal_ledger.py +27 -22
- odoo/addons/account_financial_report/report/open_items.py +24 -19
- odoo/addons/account_financial_report/report/templates/general_ledger.xml +6 -2
- odoo/addons/account_financial_report/report/templates/journal_ledger.xml +5 -2
- odoo/addons/account_financial_report/report/templates/open_items.xml +1 -1
- odoo/addons/account_financial_report/report/trial_balance.py +30 -26
- odoo/addons/account_financial_report/report/vat_report.py +17 -12
- odoo/addons/account_financial_report/static/description/index.html +1 -1
- odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +4 -4
- odoo/addons/account_financial_report/tests/test_general_ledger.py +1 -1
- odoo/addons/account_financial_report/tests/test_journal_ledger.py +5 -5
- odoo/addons/account_financial_report/tests/test_open_items.py +1 -1
- odoo/addons/account_financial_report/tests/test_trial_balance.py +4 -4
- odoo/addons/account_financial_report/tests/test_vat_report.py +1 -1
- odoo/addons/account_financial_report/wizard/abstract_wizard.py +23 -0
- odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +7 -1
- odoo/addons/account_financial_report/wizard/general_ledger_wizard.py +7 -1
- odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml +5 -0
- odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py +7 -1
- odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml +1 -0
- odoo/addons/account_financial_report/wizard/open_items_wizard.py +7 -1
- odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml +1 -0
- odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +7 -1
- odoo/addons/account_financial_report/wizard/vat_report_wizard.py +7 -1
- {odoo_addon_account_financial_report-17.0.1.7.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/METADATA +2 -2
- {odoo_addon_account_financial_report-17.0.1.7.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/RECORD +35 -35
- {odoo_addon_account_financial_report-17.0.1.7.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/WHEEL +0 -0
- {odoo_addon_account_financial_report-17.0.1.7.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Account Financial Reports
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:1f99d9f09b6b898088824b7b115048de26536d0ab194954bfec9847b648e1c9a
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -864,6 +864,11 @@ msgstr ""
|
|
|
864
864
|
msgid "Foreign Currency"
|
|
865
865
|
msgstr ""
|
|
866
866
|
|
|
867
|
+
#. module: account_financial_report
|
|
868
|
+
#: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
|
|
869
|
+
msgid "Format"
|
|
870
|
+
msgstr ""
|
|
871
|
+
|
|
867
872
|
#. module: account_financial_report
|
|
868
873
|
#: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
|
|
869
874
|
#: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
|
|
@@ -1124,6 +1129,17 @@ msgstr ""
|
|
|
1124
1129
|
msgid "Journals"
|
|
1125
1130
|
msgstr ""
|
|
1126
1131
|
|
|
1132
|
+
#. module: account_financial_report
|
|
1133
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_abstract_wizard__label_text_limit
|
|
1134
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__label_text_limit
|
|
1135
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__label_text_limit
|
|
1136
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__label_text_limit
|
|
1137
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__label_text_limit
|
|
1138
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__label_text_limit
|
|
1139
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_vat_report_wizard__label_text_limit
|
|
1140
|
+
msgid "Label Text Limit"
|
|
1141
|
+
msgstr ""
|
|
1142
|
+
|
|
1127
1143
|
#. module: account_financial_report
|
|
1128
1144
|
#: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_uid
|
|
1129
1145
|
#: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_uid
|
|
@@ -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: 2025-
|
|
10
|
+
"PO-Revision-Date: 2025-10-02 21:43+0000\n"
|
|
11
11
|
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
|
12
12
|
"Language-Team: \n"
|
|
13
13
|
"Language: it\n"
|
|
@@ -1213,7 +1213,7 @@ msgstr "Partner mancante"
|
|
|
1213
1213
|
#: code:addons/account_financial_report/report/open_items.py:0
|
|
1214
1214
|
#, python-format
|
|
1215
1215
|
msgid "Missing Salesperson"
|
|
1216
|
-
msgstr ""
|
|
1216
|
+
msgstr "Addetto vendite non trovato"
|
|
1217
1217
|
|
|
1218
1218
|
#. module: account_financial_report
|
|
1219
1219
|
#: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
|
|
@@ -1428,7 +1428,7 @@ msgstr "Partner - Saldo iniziale"
|
|
|
1428
1428
|
#. module: account_financial_report
|
|
1429
1429
|
#: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
|
|
1430
1430
|
msgid "Partner Salesperson"
|
|
1431
|
-
msgstr ""
|
|
1431
|
+
msgstr "Addetto vendite partner"
|
|
1432
1432
|
|
|
1433
1433
|
#. module: account_financial_report
|
|
1434
1434
|
#. odoo-python
|
|
@@ -160,3 +160,9 @@ class AgedPartnerBalanceReport(models.AbstractModel):
|
|
|
160
160
|
"debit",
|
|
161
161
|
"amount_currency",
|
|
162
162
|
]
|
|
163
|
+
|
|
164
|
+
def _get_report_values(self, docids, data):
|
|
165
|
+
wizard = self.env[data["wizard_name"]].browse(data["wizard_id"])
|
|
166
|
+
return {
|
|
167
|
+
"limit_text": wizard._limit_text,
|
|
168
|
+
}
|
|
@@ -413,6 +413,7 @@ class AgedPartnerBalanceReport(models.AbstractModel):
|
|
|
413
413
|
return aged_partner_data
|
|
414
414
|
|
|
415
415
|
def _get_report_values(self, docids, data):
|
|
416
|
+
res = super()._get_report_values(docids, data)
|
|
416
417
|
wizard_id = data["wizard_id"]
|
|
417
418
|
company = self.env["res.company"].browse(data["company_id"])
|
|
418
419
|
company_id = data["company_id"]
|
|
@@ -455,18 +456,23 @@ class AgedPartnerBalanceReport(models.AbstractModel):
|
|
|
455
456
|
aged_partner_data = self.with_context(
|
|
456
457
|
age_partner_config=aged_partner_configuration
|
|
457
458
|
)._calculate_percent(aged_partner_data)
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
459
|
+
res.update(
|
|
460
|
+
{
|
|
461
|
+
"doc_ids": [wizard_id],
|
|
462
|
+
"doc_model": "aged.partner.balance.report.wizard",
|
|
463
|
+
"docs": self.env["aged.partner.balance.report.wizard"].browse(
|
|
464
|
+
wizard_id
|
|
465
|
+
),
|
|
466
|
+
"company_name": company.display_name,
|
|
467
|
+
"currency_name": company.currency_id.name,
|
|
468
|
+
"date_at": date_at,
|
|
469
|
+
"only_posted_moves": only_posted_moves,
|
|
470
|
+
"aged_partner_balance": aged_partner_data,
|
|
471
|
+
"show_move_lines_details": show_move_line_details,
|
|
472
|
+
"age_partner_config": aged_partner_configuration,
|
|
473
|
+
}
|
|
474
|
+
)
|
|
475
|
+
return res
|
|
470
476
|
|
|
471
477
|
def _get_ml_fields(self):
|
|
472
478
|
return self.COMMON_ML_FIELDS + [
|
|
@@ -331,7 +331,7 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
331
331
|
"rec_id": move_line["full_reconcile_id"][0]
|
|
332
332
|
if move_line["full_reconcile_id"]
|
|
333
333
|
else False,
|
|
334
|
-
"rec_name": move_line["
|
|
334
|
+
"rec_name": move_line["matching_number"]
|
|
335
335
|
if move_line["full_reconcile_id"]
|
|
336
336
|
else "",
|
|
337
337
|
"currency_id": move_line["currency_id"],
|
|
@@ -375,7 +375,6 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
375
375
|
domain += [("move_id.state", "=", "posted")]
|
|
376
376
|
else:
|
|
377
377
|
domain += [("move_id.state", "in", ["posted", "draft"])]
|
|
378
|
-
|
|
379
378
|
if cost_center_ids:
|
|
380
379
|
domain += [("analytic_account_ids", "in", cost_center_ids)]
|
|
381
380
|
return domain
|
|
@@ -479,7 +478,7 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
479
478
|
{
|
|
480
479
|
rec_id: {
|
|
481
480
|
"id": rec_id,
|
|
482
|
-
"name": move_line["
|
|
481
|
+
"name": move_line["matching_number"],
|
|
483
482
|
}
|
|
484
483
|
}
|
|
485
484
|
)
|
|
@@ -748,6 +747,7 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
748
747
|
|
|
749
748
|
# flake8: noqa: C901
|
|
750
749
|
def _get_report_values(self, docids, data):
|
|
750
|
+
res = super()._get_report_values(docids, data)
|
|
751
751
|
wizard_id = data["wizard_id"]
|
|
752
752
|
company = self.env["res.company"].browse(data["company_id"])
|
|
753
753
|
company_id = data["company_id"]
|
|
@@ -877,29 +877,32 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
877
877
|
if not gl_item["currency_id"] and len(fin_bal_currency_ids) == 1:
|
|
878
878
|
fin_bal_currency_id = fin_bal_currency_ids[0]
|
|
879
879
|
gl_item["fin_bal_currency_id"] = fin_bal_currency_id
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
880
|
+
res.update(
|
|
881
|
+
{
|
|
882
|
+
"doc_ids": [wizard_id],
|
|
883
|
+
"doc_model": "general.ledger.report.wizard",
|
|
884
|
+
"docs": self.env["general.ledger.report.wizard"].browse(wizard_id),
|
|
885
|
+
"foreign_currency": data["foreign_currency"],
|
|
886
|
+
"company_name": company.display_name,
|
|
887
|
+
"company_currency": company.currency_id,
|
|
888
|
+
"currency_name": company.currency_id.name,
|
|
889
|
+
"date_from": data["date_from"],
|
|
890
|
+
"date_to": data["date_to"],
|
|
891
|
+
"only_posted_moves": data["only_posted_moves"],
|
|
892
|
+
"hide_account_at_0": data["hide_account_at_0"],
|
|
893
|
+
"show_cost_center": data["show_cost_center"],
|
|
894
|
+
"general_ledger": general_ledger,
|
|
895
|
+
"accounts_data": accounts_data,
|
|
896
|
+
"journals_data": journals_data,
|
|
897
|
+
"full_reconcile_data": full_reconcile_data,
|
|
898
|
+
"taxes_data": taxes_data,
|
|
899
|
+
"centralize": centralize,
|
|
900
|
+
"analytic_data": analytic_data,
|
|
901
|
+
"filter_partner_ids": True if partner_ids else False,
|
|
902
|
+
"currency_model": self.env["res.currency"],
|
|
903
|
+
}
|
|
904
|
+
)
|
|
905
|
+
return res
|
|
903
906
|
|
|
904
907
|
def _get_ml_fields(self):
|
|
905
908
|
return self.COMMON_ML_FIELDS + [
|
|
@@ -913,4 +916,5 @@ class GeneralLedgerReport(models.AbstractModel):
|
|
|
913
916
|
"balance",
|
|
914
917
|
"tax_ids",
|
|
915
918
|
"move_name",
|
|
919
|
+
"matching_number",
|
|
916
920
|
]
|
|
@@ -9,6 +9,7 @@ from odoo import models
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class JournalLedgerReport(models.AbstractModel):
|
|
12
|
+
_inherit = "report.account_financial_report.abstract_report"
|
|
12
13
|
_name = "report.account_financial_report.journal_ledger"
|
|
13
14
|
_description = "Journal Ledger Report"
|
|
14
15
|
|
|
@@ -298,6 +299,7 @@ class JournalLedgerReport(models.AbstractModel):
|
|
|
298
299
|
return journals_taxes_data_2
|
|
299
300
|
|
|
300
301
|
def _get_report_values(self, docids, data):
|
|
302
|
+
res = super()._get_report_values(docids, data)
|
|
301
303
|
wizard_id = data["wizard_id"]
|
|
302
304
|
wizard = self.env["journal.ledger.report.wizard"].browse(wizard_id)
|
|
303
305
|
company = self.env["res.company"].browse(data["company_id"])
|
|
@@ -351,25 +353,28 @@ class JournalLedgerReport(models.AbstractModel):
|
|
|
351
353
|
if journal_id in journal_totals.keys():
|
|
352
354
|
for item in ["debit", "credit"]:
|
|
353
355
|
journal_ledger_data[item] += journal_totals[journal_id][item]
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
356
|
+
res.update(
|
|
357
|
+
{
|
|
358
|
+
"doc_ids": [wizard_id],
|
|
359
|
+
"doc_model": "journal.ledger.report.wizard",
|
|
360
|
+
"docs": self.env["journal.ledger.report.wizard"].browse(wizard_id),
|
|
361
|
+
"group_option": data["group_option"],
|
|
362
|
+
"foreign_currency": data["foreign_currency"],
|
|
363
|
+
"with_account_name": data["with_account_name"],
|
|
364
|
+
"company_name": company.display_name,
|
|
365
|
+
"currency_name": company.currency_id.name,
|
|
366
|
+
"date_from": data["date_from"],
|
|
367
|
+
"date_to": data["date_to"],
|
|
368
|
+
"move_target": data["move_target"],
|
|
369
|
+
"with_auto_sequence": data["with_auto_sequence"],
|
|
370
|
+
"account_ids_data": account_ids_data,
|
|
371
|
+
"partner_ids_data": partner_ids_data,
|
|
372
|
+
"currency_ids_data": currency_ids_data,
|
|
373
|
+
"move_ids_data": move_ids_data,
|
|
374
|
+
"tax_line_data": tax_line_ids_data,
|
|
375
|
+
"move_line_ids_taxes_data": move_line_ids_taxes_data,
|
|
376
|
+
"Journal_Ledgers": journal_ledgers_data,
|
|
377
|
+
"Moves": moves_data,
|
|
378
|
+
}
|
|
379
|
+
)
|
|
380
|
+
return res
|
|
@@ -159,7 +159,7 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
159
159
|
"partner_name": partner.name or "",
|
|
160
160
|
"ref_label": ref_label,
|
|
161
161
|
"journal_id": move_line["journal_id"][0],
|
|
162
|
-
"move_name": move_line["
|
|
162
|
+
"move_name": move_line["move_name"],
|
|
163
163
|
"entry_id": move_line["move_id"][0],
|
|
164
164
|
"currency_id": move_line["currency_id"][0]
|
|
165
165
|
if move_line["currency_id"]
|
|
@@ -243,6 +243,7 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
243
243
|
return new_open_items
|
|
244
244
|
|
|
245
245
|
def _get_report_values(self, docids, data):
|
|
246
|
+
res = super()._get_report_values(docids, data)
|
|
246
247
|
wizard_id = data["wizard_id"]
|
|
247
248
|
company = self.env["res.company"].browse(data["company_id"])
|
|
248
249
|
company_id = data["company_id"]
|
|
@@ -277,24 +278,27 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
277
278
|
partners_data,
|
|
278
279
|
accounts_data,
|
|
279
280
|
)
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
281
|
+
res.update(
|
|
282
|
+
{
|
|
283
|
+
"doc_ids": [wizard_id],
|
|
284
|
+
"doc_model": "open.items.report.wizard",
|
|
285
|
+
"docs": self.env["open.items.report.wizard"].browse(wizard_id),
|
|
286
|
+
"foreign_currency": data["foreign_currency"],
|
|
287
|
+
"show_partner_details": data["show_partner_details"],
|
|
288
|
+
"company_name": company.display_name,
|
|
289
|
+
"currency_name": company.currency_id.name,
|
|
290
|
+
"date_at": date_at_object.strftime("%d/%m/%Y"),
|
|
291
|
+
"hide_account_at_0": data["hide_account_at_0"],
|
|
292
|
+
"target_move": data["target_move"],
|
|
293
|
+
"journals_data": journals_data,
|
|
294
|
+
"partners_data": partners_data,
|
|
295
|
+
"accounts_data": accounts_data,
|
|
296
|
+
"total_amount": total_amount,
|
|
297
|
+
"Open_Items": open_items_move_lines_data,
|
|
298
|
+
"grouped_by": grouped_by,
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
return res
|
|
298
302
|
|
|
299
303
|
def _get_ml_fields(self):
|
|
300
304
|
return self.COMMON_ML_FIELDS + [
|
|
@@ -306,4 +310,5 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
306
310
|
"amount_residual_currency",
|
|
307
311
|
"debit",
|
|
308
312
|
"amount_currency",
|
|
313
|
+
"move_name",
|
|
309
314
|
]
|
|
@@ -463,12 +463,16 @@
|
|
|
463
463
|
res-model="account.move.line"
|
|
464
464
|
view-type="form"
|
|
465
465
|
>
|
|
466
|
-
<t
|
|
466
|
+
<t
|
|
467
|
+
t-out="limit_text(line['ref_label'], 'label_text_limit')"
|
|
468
|
+
/>
|
|
467
469
|
</span>
|
|
468
470
|
</t>
|
|
469
471
|
<t t-else="">
|
|
470
472
|
<span>
|
|
471
|
-
<t
|
|
473
|
+
<t
|
|
474
|
+
t-out="limit_text(line['ref_label'], 'label_text_limit')"
|
|
475
|
+
/>
|
|
472
476
|
</span>
|
|
473
477
|
</t>
|
|
474
478
|
</div>
|
|
@@ -267,7 +267,10 @@
|
|
|
267
267
|
/>
|
|
268
268
|
</div>
|
|
269
269
|
<div class="act_as_cell left" name="label">
|
|
270
|
-
<span
|
|
270
|
+
<span
|
|
271
|
+
t-if="move_line['label']"
|
|
272
|
+
t-esc="limit_text(move_line['label'], 'label_text_limit')"
|
|
273
|
+
/>
|
|
271
274
|
<span t-if="not move_line['label']">/</span>
|
|
272
275
|
</div>
|
|
273
276
|
<div class="act_as_cell left" name="taxes">
|
|
@@ -280,7 +283,7 @@
|
|
|
280
283
|
t-value="o._get_data_from_dict(move_line['move_line_id'], move_line_ids_taxes_data)"
|
|
281
284
|
/>
|
|
282
285
|
<span
|
|
283
|
-
t-esc="o._get_ml_tax_description(move_line, tax_line_dat, move_line_ids_taxes_dat)"
|
|
286
|
+
t-esc="limit_text(o._get_ml_tax_description(move_line, tax_line_dat, move_line_ids_taxes_dat), 'label_text_limit')"
|
|
284
287
|
/>
|
|
285
288
|
</div>
|
|
286
289
|
<div class="act_as_cell amount" name="debit">
|
|
@@ -861,6 +861,7 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
861
861
|
return groups_data
|
|
862
862
|
|
|
863
863
|
def _get_report_values(self, docids, data):
|
|
864
|
+
res = super()._get_report_values(docids, data)
|
|
864
865
|
show_partner_details = data["show_partner_details"]
|
|
865
866
|
wizard_id = data["wizard_id"]
|
|
866
867
|
company = self.env["res.company"].browse(data["company_id"])
|
|
@@ -955,29 +956,32 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
955
956
|
total_amount[account_id]["currency_name"] = accounts_data[
|
|
956
957
|
account_id
|
|
957
958
|
]["currency_name"]
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
959
|
+
res.update(
|
|
960
|
+
{
|
|
961
|
+
"doc_ids": [wizard_id],
|
|
962
|
+
"doc_model": "trial.balance.report.wizard",
|
|
963
|
+
"docs": self.env["trial.balance.report.wizard"].browse(wizard_id),
|
|
964
|
+
"foreign_currency": data["foreign_currency"],
|
|
965
|
+
"company_name": company.display_name,
|
|
966
|
+
"company_currency": company.currency_id,
|
|
967
|
+
"currency_name": company.currency_id.name,
|
|
968
|
+
"date_from": data["date_from"],
|
|
969
|
+
"date_to": data["date_to"],
|
|
970
|
+
"only_posted_moves": data["only_posted_moves"],
|
|
971
|
+
"hide_account_at_0": data["hide_account_at_0"],
|
|
972
|
+
"show_partner_details": data["show_partner_details"],
|
|
973
|
+
"limit_hierarchy_level": data["limit_hierarchy_level"],
|
|
974
|
+
"show_hierarchy": show_hierarchy,
|
|
975
|
+
"hide_parent_hierarchy_level": data["hide_parent_hierarchy_level"],
|
|
976
|
+
"trial_balance": trial_balance,
|
|
977
|
+
"trial_balance_grouped": trial_balance_grouped,
|
|
978
|
+
"total_amount": total_amount,
|
|
979
|
+
"total_amount_grouped": total_amount_grouped,
|
|
980
|
+
"accounts_data": accounts_data,
|
|
981
|
+
"partners_data": partners_data,
|
|
982
|
+
"show_hierarchy_level": show_hierarchy_level,
|
|
983
|
+
"currency_model": self.env["res.currency"],
|
|
984
|
+
"grouped_by": grouped_by,
|
|
985
|
+
}
|
|
986
|
+
)
|
|
987
|
+
return res
|
|
@@ -8,6 +8,7 @@ from odoo import api, models
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class VATReport(models.AbstractModel):
|
|
11
|
+
_inherit = "report.account_financial_report.abstract_report"
|
|
11
12
|
_name = "report.account_financial_report.vat_report"
|
|
12
13
|
_description = "Vat Report Report"
|
|
13
14
|
|
|
@@ -197,6 +198,7 @@ class VATReport(models.AbstractModel):
|
|
|
197
198
|
return vat_report_list
|
|
198
199
|
|
|
199
200
|
def _get_report_values(self, docids, data):
|
|
201
|
+
res = super()._get_report_values(docids, data)
|
|
200
202
|
wizard_id = data["wizard_id"]
|
|
201
203
|
company = self.env["res.company"].browse(data["company_id"])
|
|
202
204
|
company_id = data["company_id"]
|
|
@@ -216,18 +218,21 @@ class VATReport(models.AbstractModel):
|
|
|
216
218
|
vat_report = self._get_vat_report_tag_data(
|
|
217
219
|
vat_report_data, tax_data, tax_detail
|
|
218
220
|
)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
221
|
+
res.update(
|
|
222
|
+
{
|
|
223
|
+
"doc_ids": [wizard_id],
|
|
224
|
+
"doc_model": "vat.report.wizard",
|
|
225
|
+
"docs": self.env["vat.report.wizard"].browse(wizard_id),
|
|
226
|
+
"company_name": company.display_name,
|
|
227
|
+
"currency_name": company.currency_id.name,
|
|
228
|
+
"date_to": data["date_to"],
|
|
229
|
+
"date_from": data["date_from"],
|
|
230
|
+
"based_on": data["based_on"],
|
|
231
|
+
"tax_detail": data["tax_detail"],
|
|
232
|
+
"vat_report": vat_report,
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
return res
|
|
231
236
|
|
|
232
237
|
def _get_ml_fields_vat_report(self):
|
|
233
238
|
return [
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:1f99d9f09b6b898088824b7b115048de26536d0ab194954bfec9847b648e1c9a
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
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>
|
|
378
378
|
<p>This module adds a set of financial reports. They are accessible under
|
|
@@ -56,7 +56,7 @@ class TestAgedPartnerBalance(TransactionCase):
|
|
|
56
56
|
"""Check that report is produced correctly."""
|
|
57
57
|
wizard = self.wizard_with_line_details
|
|
58
58
|
wizard.onchange_type_accounts_only()
|
|
59
|
-
data = wizard.
|
|
59
|
+
data = wizard._prepare_report_data()
|
|
60
60
|
|
|
61
61
|
# Simulate web client behavior:
|
|
62
62
|
# default value is a datetime.date but web client sends back strings
|
|
@@ -71,7 +71,7 @@ class TestAgedPartnerBalance(TransactionCase):
|
|
|
71
71
|
self.assertTrue(result)
|
|
72
72
|
second_wizard = self.wizard_without_line_details
|
|
73
73
|
second_wizard.onchange_type_accounts_only()
|
|
74
|
-
data = second_wizard.
|
|
74
|
+
data = second_wizard._prepare_report_data()
|
|
75
75
|
|
|
76
76
|
# Simulate web client behavior:
|
|
77
77
|
# default value is a datetime.date but web client sends back strings
|
|
@@ -91,7 +91,7 @@ class TestAgedPartnerBalance(TransactionCase):
|
|
|
91
91
|
wizard.age_partner_config_id = self.account_age_report_config.id
|
|
92
92
|
|
|
93
93
|
wizard.onchange_type_accounts_only()
|
|
94
|
-
data = wizard.
|
|
94
|
+
data = wizard._prepare_report_data()
|
|
95
95
|
|
|
96
96
|
# Simulate web client behavior:
|
|
97
97
|
# default value is a datetime.date but web client sends back strings
|
|
@@ -109,7 +109,7 @@ class TestAgedPartnerBalance(TransactionCase):
|
|
|
109
109
|
second_wizard.age_partner_config_id = self.account_age_report_config.id
|
|
110
110
|
|
|
111
111
|
second_wizard.onchange_type_accounts_only()
|
|
112
|
-
data = second_wizard.
|
|
112
|
+
data = second_wizard._prepare_report_data()
|
|
113
113
|
|
|
114
114
|
# Simulate web client behavior:
|
|
115
115
|
# default value is a datetime.date but web client sends back strings
|
|
@@ -118,7 +118,7 @@ class TestGeneralLedgerReport(AccountTestInvoicingCommon):
|
|
|
118
118
|
"centralize": centralize,
|
|
119
119
|
}
|
|
120
120
|
)
|
|
121
|
-
data = general_ledger.
|
|
121
|
+
data = general_ledger._prepare_report_data()
|
|
122
122
|
res_data = self.env[
|
|
123
123
|
"report.account_financial_report.general_ledger"
|
|
124
124
|
]._get_report_values(general_ledger, data)
|
|
@@ -177,7 +177,7 @@ class TestJournalReport(AccountTestInvoicingCommon):
|
|
|
177
177
|
"move_target": "all",
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
|
-
data = wiz.
|
|
180
|
+
data = wiz._prepare_report_data()
|
|
181
181
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
182
182
|
self.check_report_journal_debit_credit(res_data, 100, 100)
|
|
183
183
|
|
|
@@ -186,7 +186,7 @@ class TestJournalReport(AccountTestInvoicingCommon):
|
|
|
186
186
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
187
187
|
self.check_report_journal_debit_credit(res_data, 200, 200)
|
|
188
188
|
wiz.move_target = "posted"
|
|
189
|
-
data = wiz.
|
|
189
|
+
data = wiz._prepare_report_data()
|
|
190
190
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
191
191
|
self.check_report_journal_debit_credit(res_data, 0, 0)
|
|
192
192
|
|
|
@@ -203,7 +203,7 @@ class TestJournalReport(AccountTestInvoicingCommon):
|
|
|
203
203
|
self.check_report_journal_debit_credit(res_data, 200, 200)
|
|
204
204
|
|
|
205
205
|
wiz.date_from = self.previous_fy_date_start
|
|
206
|
-
data = wiz.
|
|
206
|
+
data = wiz._prepare_report_data()
|
|
207
207
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
208
208
|
self.check_report_journal_debit_credit(res_data, 300, 300)
|
|
209
209
|
|
|
@@ -238,7 +238,7 @@ class TestJournalReport(AccountTestInvoicingCommon):
|
|
|
238
238
|
"move_target": "all",
|
|
239
239
|
}
|
|
240
240
|
)
|
|
241
|
-
data = wiz.
|
|
241
|
+
data = wiz._prepare_report_data()
|
|
242
242
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
243
243
|
self.check_report_journal_debit_credit(res_data, 250, 250)
|
|
244
244
|
self.check_report_journal_debit_credit_taxes(res_data, 0, 300, 0, 50)
|
|
@@ -276,7 +276,7 @@ class TestJournalReport(AccountTestInvoicingCommon):
|
|
|
276
276
|
"move_target": "all",
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
|
-
data = wiz.
|
|
279
|
+
data = wiz._prepare_report_data()
|
|
280
280
|
res_data = self.JournalLedgerReport._get_report_values(wiz, data)
|
|
281
281
|
|
|
282
282
|
self.check_report_journal_debit_credit(res_data, 250, 250)
|
|
@@ -192,7 +192,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
192
192
|
"show_partner_details": with_partners,
|
|
193
193
|
}
|
|
194
194
|
)
|
|
195
|
-
data = trial_balance.
|
|
195
|
+
data = trial_balance._prepare_report_data()
|
|
196
196
|
res_data = self.env[
|
|
197
197
|
"report.account_financial_report.trial_balance"
|
|
198
198
|
]._get_report_values(trial_balance, data)
|
|
@@ -547,7 +547,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
547
547
|
"fy_start_date": self.fy_date_start,
|
|
548
548
|
}
|
|
549
549
|
)
|
|
550
|
-
data = trial_balance.
|
|
550
|
+
data = trial_balance._prepare_report_data()
|
|
551
551
|
res_data = self.env[
|
|
552
552
|
"report.account_financial_report.trial_balance"
|
|
553
553
|
]._get_report_values(trial_balance, data)
|
|
@@ -600,7 +600,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
600
600
|
"fy_start_date": self.fy_date_start,
|
|
601
601
|
}
|
|
602
602
|
)
|
|
603
|
-
data = trial_balance.
|
|
603
|
+
data = trial_balance._prepare_report_data()
|
|
604
604
|
res_data = self.env[
|
|
605
605
|
"report.account_financial_report.trial_balance"
|
|
606
606
|
]._get_report_values(trial_balance, data)
|
|
@@ -654,7 +654,7 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
654
654
|
"fy_start_date": self.fy_date_start,
|
|
655
655
|
}
|
|
656
656
|
)
|
|
657
|
-
data = trial_balance.
|
|
657
|
+
data = trial_balance._prepare_report_data()
|
|
658
658
|
res_data = self.env[
|
|
659
659
|
"report.account_financial_report.trial_balance"
|
|
660
660
|
]._get_report_values(trial_balance, data)
|
|
@@ -218,7 +218,7 @@ class TestVATReport(AccountTestInvoicingCommon):
|
|
|
218
218
|
"tax_detail": True,
|
|
219
219
|
}
|
|
220
220
|
)
|
|
221
|
-
data = vat_report.
|
|
221
|
+
data = vat_report._prepare_report_data()
|
|
222
222
|
res_data = self.env[
|
|
223
223
|
"report.account_financial_report.vat_report"
|
|
224
224
|
]._get_report_values(vat_report, data)
|
|
@@ -34,18 +34,41 @@ class AbstractWizard(models.AbstractModel):
|
|
|
34
34
|
required=False,
|
|
35
35
|
string="Company",
|
|
36
36
|
)
|
|
37
|
+
label_text_limit = fields.Integer(default=40)
|
|
37
38
|
|
|
38
39
|
def button_export_html(self):
|
|
39
40
|
self.ensure_one()
|
|
41
|
+
self._set_default_wizard_values()
|
|
40
42
|
report_type = "qweb-html"
|
|
41
43
|
return self._export(report_type)
|
|
42
44
|
|
|
43
45
|
def button_export_pdf(self):
|
|
44
46
|
self.ensure_one()
|
|
47
|
+
self._set_default_wizard_values()
|
|
45
48
|
report_type = "qweb-pdf"
|
|
46
49
|
return self._export(report_type)
|
|
47
50
|
|
|
48
51
|
def button_export_xlsx(self):
|
|
49
52
|
self.ensure_one()
|
|
53
|
+
self._set_default_wizard_values()
|
|
50
54
|
report_type = "xlsx"
|
|
51
55
|
return self._export(report_type)
|
|
56
|
+
|
|
57
|
+
def _limit_text(self, value, limit_field="label_text_limit"):
|
|
58
|
+
limit = self[limit_field]
|
|
59
|
+
if value and limit and len(value) > limit:
|
|
60
|
+
value = value[:limit] + "..."
|
|
61
|
+
return value
|
|
62
|
+
|
|
63
|
+
def _prepare_report_data(self):
|
|
64
|
+
self.ensure_one()
|
|
65
|
+
return {"wizard_name": self._name, "wizard_id": self.id}
|
|
66
|
+
|
|
67
|
+
def _set_default_wizard_values(self):
|
|
68
|
+
self.env["ir.default"].set(
|
|
69
|
+
self._name,
|
|
70
|
+
"label_text_limit",
|
|
71
|
+
self.label_text_limit,
|
|
72
|
+
user_id=False,
|
|
73
|
+
company_id=True,
|
|
74
|
+
)
|
|
@@ -117,7 +117,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
|
|
117
117
|
|
|
118
118
|
def _print_report(self, report_type):
|
|
119
119
|
self.ensure_one()
|
|
120
|
-
data = self.
|
|
120
|
+
data = self._prepare_report_data()
|
|
121
121
|
if report_type == "xlsx":
|
|
122
122
|
report_name = "a_f_r.report_aged_partner_balance_xlsx"
|
|
123
123
|
else:
|
|
@@ -132,6 +132,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
|
|
132
132
|
)
|
|
133
133
|
|
|
134
134
|
def _prepare_report_aged_partner_balance(self):
|
|
135
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
135
136
|
self.ensure_one()
|
|
136
137
|
return {
|
|
137
138
|
"wizard_id": self.id,
|
|
@@ -146,6 +147,11 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
|
|
146
147
|
"age_partner_config_id": self.age_partner_config_id.id,
|
|
147
148
|
}
|
|
148
149
|
|
|
150
|
+
def _prepare_report_data(self):
|
|
151
|
+
res = super()._prepare_report_data()
|
|
152
|
+
res.update(self._prepare_report_aged_partner_balance())
|
|
153
|
+
return res
|
|
154
|
+
|
|
149
155
|
def _export(self, report_type):
|
|
150
156
|
"""Default export is PDF."""
|
|
151
157
|
return self._print_report(report_type)
|
|
@@ -276,7 +276,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
|
|
276
276
|
|
|
277
277
|
def _print_report(self, report_type):
|
|
278
278
|
self.ensure_one()
|
|
279
|
-
data = self.
|
|
279
|
+
data = self._prepare_report_data()
|
|
280
280
|
if report_type == "xlsx":
|
|
281
281
|
report_name = "a_f_r.report_general_ledger_xlsx"
|
|
282
282
|
else:
|
|
@@ -291,6 +291,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
|
|
291
291
|
)
|
|
292
292
|
|
|
293
293
|
def _prepare_report_general_ledger(self):
|
|
294
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
294
295
|
self.ensure_one()
|
|
295
296
|
return {
|
|
296
297
|
"wizard_id": self.id,
|
|
@@ -313,6 +314,11 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
|
|
313
314
|
"domain": self._get_account_move_lines_domain(),
|
|
314
315
|
}
|
|
315
316
|
|
|
317
|
+
def _prepare_report_data(self):
|
|
318
|
+
res = super()._prepare_report_data()
|
|
319
|
+
res.update(self._prepare_report_general_ledger())
|
|
320
|
+
return res
|
|
321
|
+
|
|
316
322
|
def _export(self, report_type):
|
|
317
323
|
"""Default export is PDF."""
|
|
318
324
|
return self._print_report(report_type)
|
|
@@ -75,7 +75,7 @@ class JournalLedgerReportWizard(models.TransientModel):
|
|
|
75
75
|
|
|
76
76
|
def _print_report(self, report_type):
|
|
77
77
|
self.ensure_one()
|
|
78
|
-
data = self.
|
|
78
|
+
data = self._prepare_report_data()
|
|
79
79
|
if report_type == "xlsx":
|
|
80
80
|
report_name = "a_f_r.report_journal_ledger_xlsx"
|
|
81
81
|
else:
|
|
@@ -90,6 +90,7 @@ class JournalLedgerReportWizard(models.TransientModel):
|
|
|
90
90
|
)
|
|
91
91
|
|
|
92
92
|
def _prepare_report_journal_ledger(self):
|
|
93
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
93
94
|
self.ensure_one()
|
|
94
95
|
journals = self.journal_ids
|
|
95
96
|
if not journals:
|
|
@@ -112,6 +113,11 @@ class JournalLedgerReportWizard(models.TransientModel):
|
|
|
112
113
|
"with_auto_sequence": self.with_auto_sequence,
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
def _prepare_report_data(self):
|
|
117
|
+
res = super()._prepare_report_data()
|
|
118
|
+
res.update(self._prepare_report_journal_ledger())
|
|
119
|
+
return res
|
|
120
|
+
|
|
115
121
|
def _export(self, report_type):
|
|
116
122
|
"""Default export is PDF."""
|
|
117
123
|
self.ensure_one()
|
|
@@ -153,7 +153,7 @@ class OpenItemsReportWizard(models.TransientModel):
|
|
|
153
153
|
|
|
154
154
|
def _print_report(self, report_type):
|
|
155
155
|
self.ensure_one()
|
|
156
|
-
data = self.
|
|
156
|
+
data = self._prepare_report_data()
|
|
157
157
|
if report_type == "xlsx":
|
|
158
158
|
report_name = "a_f_r.report_open_items_xlsx"
|
|
159
159
|
else:
|
|
@@ -168,6 +168,7 @@ class OpenItemsReportWizard(models.TransientModel):
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
def _prepare_report_open_items(self):
|
|
171
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
171
172
|
self.ensure_one()
|
|
172
173
|
return {
|
|
173
174
|
"wizard_id": self.id,
|
|
@@ -185,5 +186,10 @@ class OpenItemsReportWizard(models.TransientModel):
|
|
|
185
186
|
"grouped_by": self.grouped_by,
|
|
186
187
|
}
|
|
187
188
|
|
|
189
|
+
def _prepare_report_data(self):
|
|
190
|
+
res = super()._prepare_report_data()
|
|
191
|
+
res.update(self._prepare_report_open_items())
|
|
192
|
+
return res
|
|
193
|
+
|
|
188
194
|
def _export(self, report_type):
|
|
189
195
|
return self._print_report(report_type)
|
|
@@ -239,7 +239,7 @@ class TrialBalanceReportWizard(models.TransientModel):
|
|
|
239
239
|
|
|
240
240
|
def _print_report(self, report_type):
|
|
241
241
|
self.ensure_one()
|
|
242
|
-
data = self.
|
|
242
|
+
data = self._prepare_report_data()
|
|
243
243
|
if report_type == "xlsx":
|
|
244
244
|
report_name = "a_f_r.report_trial_balance_xlsx"
|
|
245
245
|
else:
|
|
@@ -254,6 +254,7 @@ class TrialBalanceReportWizard(models.TransientModel):
|
|
|
254
254
|
)
|
|
255
255
|
|
|
256
256
|
def _prepare_report_trial_balance(self):
|
|
257
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
257
258
|
self.ensure_one()
|
|
258
259
|
return {
|
|
259
260
|
"wizard_id": self.id,
|
|
@@ -277,6 +278,11 @@ class TrialBalanceReportWizard(models.TransientModel):
|
|
|
277
278
|
"grouped_by": self.grouped_by,
|
|
278
279
|
}
|
|
279
280
|
|
|
281
|
+
def _prepare_report_data(self):
|
|
282
|
+
res = super()._prepare_report_data()
|
|
283
|
+
res.update(self._prepare_report_trial_balance())
|
|
284
|
+
return res
|
|
285
|
+
|
|
280
286
|
def _export(self, report_type):
|
|
281
287
|
"""Default export is PDF."""
|
|
282
288
|
return self._print_report(report_type)
|
|
@@ -68,7 +68,7 @@ class VATReportWizard(models.TransientModel):
|
|
|
68
68
|
|
|
69
69
|
def _print_report(self, report_type):
|
|
70
70
|
self.ensure_one()
|
|
71
|
-
data = self.
|
|
71
|
+
data = self._prepare_report_data()
|
|
72
72
|
if report_type == "xlsx":
|
|
73
73
|
report_name = "a_f_r.report_vat_report_xlsx"
|
|
74
74
|
else:
|
|
@@ -83,6 +83,7 @@ class VATReportWizard(models.TransientModel):
|
|
|
83
83
|
)
|
|
84
84
|
|
|
85
85
|
def _prepare_vat_report(self):
|
|
86
|
+
# TODO: Kept for compatibility - To be merged into _prepare_report_data in 19
|
|
86
87
|
self.ensure_one()
|
|
87
88
|
return {
|
|
88
89
|
"wizard_id": self.id,
|
|
@@ -95,6 +96,11 @@ class VATReportWizard(models.TransientModel):
|
|
|
95
96
|
"account_financial_report_lang": self.env.lang,
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
def _prepare_report_data(self):
|
|
100
|
+
res = super()._prepare_report_data()
|
|
101
|
+
res.update(self._prepare_vat_report())
|
|
102
|
+
return res
|
|
103
|
+
|
|
98
104
|
def _export(self, report_type):
|
|
99
105
|
"""Default export is PDF."""
|
|
100
106
|
return self._print_report(report_type)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_financial_report
|
|
3
|
-
Version: 17.0.1.
|
|
3
|
+
Version: 17.0.1.8.0
|
|
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
|
|
@@ -29,7 +29,7 @@ Account Financial Reports
|
|
|
29
29
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
30
|
!! changes will be overwritten. !!
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
32
|
+
!! source digest: sha256:1f99d9f09b6b898088824b7b115048de26536d0ab194954bfec9847b648e1c9a
|
|
33
33
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
34
|
|
|
35
35
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
odoo/addons/account_financial_report/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_financial_report/README.rst,sha256=93eTBt11Pc6xvhQBOtOg-r3nMPBJed-cu0bHtMaKppE,7053
|
|
2
2
|
odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
|
|
3
|
-
odoo/addons/account_financial_report/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_financial_report/__manifest__.py,sha256=HXtZVXN_74daNA1oXufqtxpnxp2UhT_E-TY3CMpyobc,2061
|
|
4
4
|
odoo/addons/account_financial_report/menuitems.xml,sha256=k20N6cNRlDsnPhc378MVs7jwzJhbbJQ2k-P3WdsmF_M,1206
|
|
5
5
|
odoo/addons/account_financial_report/reports.xml,sha256=c2KamS250rNzHUInjNwC0G2dhwiIqtYgbked51PtmVw,9254
|
|
6
|
-
odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=
|
|
6
|
+
odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=EtY49-bhYnU3SXG-TER3cB5psWuEST5obiMil05qGK8,85142
|
|
7
7
|
odoo/addons/account_financial_report/i18n/ar.po,sha256=ozPX7rE5ydu8MpUJEfhdhZ5Pj5XfeFQCy1EjviRAaSw,92261
|
|
8
8
|
odoo/addons/account_financial_report/i18n/ca.po,sha256=w_Vr1UHcNM3ppr6cndWDjxHCYoXtUFfUQWNif8GYER0,89088
|
|
9
9
|
odoo/addons/account_financial_report/i18n/de.po,sha256=WQx__BqAnc5qKugsaS1ultMOwKRhDeew99ELmUmIA1E,94948
|
|
@@ -14,7 +14,7 @@ odoo/addons/account_financial_report/i18n/fr.po,sha256=oIVZoUJtlY1rvT30DxCTt7csf
|
|
|
14
14
|
odoo/addons/account_financial_report/i18n/fr_CH.po,sha256=0my9URwY0lm2FaNMlGL9DIK12g3j9_xNWW8Z2eeBOfo,87375
|
|
15
15
|
odoo/addons/account_financial_report/i18n/hr.po,sha256=izZuuhsRYYIDxCmvAH7sACsI_5AG6vGiqs8iqvDH7PY,85955
|
|
16
16
|
odoo/addons/account_financial_report/i18n/hr_HR.po,sha256=cp8CTxLN0RDR_o6nmrXVRtpR7pRs6taECzKmjgzv_uU,83477
|
|
17
|
-
odoo/addons/account_financial_report/i18n/it.po,sha256=
|
|
17
|
+
odoo/addons/account_financial_report/i18n/it.po,sha256=He_BSlNlX0T2KZ3Zjegcv1ZMDGbUWfVKuuP9Lr5TVOI,93689
|
|
18
18
|
odoo/addons/account_financial_report/i18n/ja.po,sha256=h_VwpxPutmCZC56EDs_IJO8sDuT8KqQemyZyRkCVr-U,83238
|
|
19
19
|
odoo/addons/account_financial_report/i18n/nl.po,sha256=cXnqW5Y6V1VH-redqigX2lFB__qoehnbZ2xH2ba-cD4,95612
|
|
20
20
|
odoo/addons/account_financial_report/i18n/nl_NL.po,sha256=pSvQ9PzQALfhVDlVl5tHYSy6COaiy8kJAYllRav8neE,83143
|
|
@@ -36,31 +36,31 @@ odoo/addons/account_financial_report/readme/DESCRIPTION.md,sha256=4mWyU68JKCXDnf
|
|
|
36
36
|
odoo/addons/account_financial_report/readme/HISTORY.md,sha256=5PzKD9lPwX_nKEaZRwGYea4Q0sXJy2dEbRUBUSYwAMg,473
|
|
37
37
|
odoo/addons/account_financial_report/readme/ROADMAP.md,sha256=kZqiEvRk8A3A47ZIh-OiAtqgaPpxO6ul0P60oCEg8Qg,360
|
|
38
38
|
odoo/addons/account_financial_report/report/__init__.py,sha256=A-DcPm9nBQnH58gXR3H4kQoHF0pKAjLUnPnXl1RQqng,618
|
|
39
|
-
odoo/addons/account_financial_report/report/abstract_report.py,sha256=
|
|
39
|
+
odoo/addons/account_financial_report/report/abstract_report.py,sha256=uIDaZUQiPqODRTmOntsHlN5auymnBfmd1XJYEyeMMeg,6154
|
|
40
40
|
odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256=QILq6AACBxyC8Mnyz9Jj9OAEn2NySRzQMndxCwfxG2M,29912
|
|
41
|
-
odoo/addons/account_financial_report/report/aged_partner_balance.py,sha256=
|
|
41
|
+
odoo/addons/account_financial_report/report/aged_partner_balance.py,sha256=NosQW-C5I4yU2BGAjYiBOHBh6LkfjbWnKsIPDZm6vLA,20162
|
|
42
42
|
odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py,sha256=DzOfIfKJ7a6lExmjACLN0JI0t1nEtsCY-N0HHbv_5Nw,14276
|
|
43
|
-
odoo/addons/account_financial_report/report/general_ledger.py,sha256=
|
|
43
|
+
odoo/addons/account_financial_report/report/general_ledger.py,sha256=_n6wE5bJNdDGEMhmc78ChzIy_x4nMe-l3tf2vKvl5cY,37583
|
|
44
44
|
odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=qXDm9V1XyLtwUYp_4i-p4mCG6ZEuMwcrFLuPhu1Exhw,17426
|
|
45
|
-
odoo/addons/account_financial_report/report/journal_ledger.py,sha256=
|
|
45
|
+
odoo/addons/account_financial_report/report/journal_ledger.py,sha256=PNcejcmpPcOT6R12BvYyrOcGrgz-OsIAci95cYRTuxI,15654
|
|
46
46
|
odoo/addons/account_financial_report/report/journal_ledger_xlsx.py,sha256=kY6c-56HHauIyHAc7q5iNerz0gJQrp4ahI4OB1XeCT8,10060
|
|
47
|
-
odoo/addons/account_financial_report/report/open_items.py,sha256=
|
|
47
|
+
odoo/addons/account_financial_report/report/open_items.py,sha256=ch5qjCr3PjpxvYsnumoBfJm4kyBtMHaZ6-IHuDVka08,12749
|
|
48
48
|
odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=ztfVhZS5dTVcWFiceHzo7baWEQj5MZesSJFZujYGs1Q,14931
|
|
49
|
-
odoo/addons/account_financial_report/report/trial_balance.py,sha256=
|
|
49
|
+
odoo/addons/account_financial_report/report/trial_balance.py,sha256=pWuxPcmPS-MITcNqoRdU8JLvVIRibhYQu6Xs0ic0WtA,42667
|
|
50
50
|
odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=3wpHQ5JEM9g1pZpS9V7yo5Bed1JEKdMcfxzoq6I55_0,13246
|
|
51
|
-
odoo/addons/account_financial_report/report/vat_report.py,sha256=
|
|
51
|
+
odoo/addons/account_financial_report/report/vat_report.py,sha256=4ZQTwrupLaPgXnTwQCfgqkIh1BpbYy7U4VqVa92pO9I,10327
|
|
52
52
|
odoo/addons/account_financial_report/report/vat_report_xlsx.py,sha256=ksdmiHDQZBBtk8fqkxSAS6-nFIyhT-wue4OTSV6xW9c,2307
|
|
53
53
|
odoo/addons/account_financial_report/report/templates/aged_partner_balance.xml,sha256=IfeLCmOIFqyaEsRnRihb0pXo-deJD41id5qgjE3_Ftw,41020
|
|
54
|
-
odoo/addons/account_financial_report/report/templates/general_ledger.xml,sha256=
|
|
55
|
-
odoo/addons/account_financial_report/report/templates/journal_ledger.xml,sha256=
|
|
54
|
+
odoo/addons/account_financial_report/report/templates/general_ledger.xml,sha256=9aIS7ihcjTKzFjlmoTxuqWfGqTXD-s3YKbJtpYDCr10,40587
|
|
55
|
+
odoo/addons/account_financial_report/report/templates/journal_ledger.xml,sha256=gEhLkjzj-BYU35xYquTha8tyXWOrpfTHGveGZ5D-cQM,21682
|
|
56
56
|
odoo/addons/account_financial_report/report/templates/layouts.xml,sha256=gCejPAn8GLrySSve8pGcs0fY5nr48C3mmyuoEJVZkJ4,1526
|
|
57
|
-
odoo/addons/account_financial_report/report/templates/open_items.xml,sha256=
|
|
57
|
+
odoo/addons/account_financial_report/report/templates/open_items.xml,sha256=8yymWZ6o3EHfk2aDboKrLuT5rrtBW0OEHpcmWzgFMC0,21591
|
|
58
58
|
odoo/addons/account_financial_report/report/templates/trial_balance.xml,sha256=GjJgC0Td3kBE7xJ_lpqLIRax4tiOI9tPYaXW1bPtbLk,53388
|
|
59
59
|
odoo/addons/account_financial_report/report/templates/vat_report.xml,sha256=2WeL6Njr8LFBtERKmfyi3IH-J1frSO4Gpew-ruzuWNk,8128
|
|
60
60
|
odoo/addons/account_financial_report/security/ir.model.access.csv,sha256=S1VQLLwLeaOeAMYGqtoOqHUaZVrvDUVE4Z-0-SRjSGQ,1134
|
|
61
61
|
odoo/addons/account_financial_report/security/security.xml,sha256=YQCXbOuTGHCWGYwGnXMie_0tnWG5zYJGdoeey3o1xaw,382
|
|
62
62
|
odoo/addons/account_financial_report/static/description/icon.png,sha256=WW-eOIjW5-jo7tgBieNv6K2DUKMoHFSVctnp0htstHI,15230
|
|
63
|
-
odoo/addons/account_financial_report/static/description/index.html,sha256=
|
|
63
|
+
odoo/addons/account_financial_report/static/description/index.html,sha256=PQLhZ9SwIeQSrxhZWZuMj_a8VG620FfQoVUDTQwp6LQ,19960
|
|
64
64
|
odoo/addons/account_financial_report/static/src/css/report.css,sha256=Cu4VmyY5tVXIddaojFDsg0Ute2qPCvKbLiimak_X9ik,2361
|
|
65
65
|
odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=I1kX1RsThtjGNLOaNJEWCvMnB9iAFW6nGkcyFYZzJoA,135
|
|
66
66
|
odoo/addons/account_financial_report/static/src/js/report.esm.js,sha256=He488vLRaLv6IIuVaNSnNl8kJMIwJmMIv7GkmXyPJZs,2475
|
|
@@ -68,12 +68,12 @@ odoo/addons/account_financial_report/static/src/js/report_action.esm.js,sha256=v
|
|
|
68
68
|
odoo/addons/account_financial_report/static/src/xml/report.xml,sha256=b0CFMw4g3KVeRFHRQjm6ujNxv7PtZS101dJrHArQUaw,496
|
|
69
69
|
odoo/addons/account_financial_report/tests/__init__.py,sha256=nK3uX5FGFUhgfElRqdLZVZ3Qh59WV6G4f0hyRMGndVE,351
|
|
70
70
|
odoo/addons/account_financial_report/tests/test_age_report_configuration.py,sha256=YRe_xyrN3FTKBsEpTMPrMJFLb40gfk6aiOaSZz7BoXs,1423
|
|
71
|
-
odoo/addons/account_financial_report/tests/test_aged_partner_balance.py,sha256=
|
|
72
|
-
odoo/addons/account_financial_report/tests/test_general_ledger.py,sha256=
|
|
73
|
-
odoo/addons/account_financial_report/tests/test_journal_ledger.py,sha256=
|
|
74
|
-
odoo/addons/account_financial_report/tests/test_open_items.py,sha256=
|
|
75
|
-
odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=
|
|
76
|
-
odoo/addons/account_financial_report/tests/test_vat_report.py,sha256=
|
|
71
|
+
odoo/addons/account_financial_report/tests/test_aged_partner_balance.py,sha256=ZfzXRFGWBpSr2-fEuqSL8Q2jKZ80eUVUbfYCCjjh_0s,4520
|
|
72
|
+
odoo/addons/account_financial_report/tests/test_general_ledger.py,sha256=Uz3DbAOUuFwI3BqrSbY2Djhum22dvI33Ivn5Z05fMSk,29162
|
|
73
|
+
odoo/addons/account_financial_report/tests/test_journal_ledger.py,sha256=sbOB-T8nFOx6_vo5WZaVAmOB0optIugriDi89oUZ8qw,11104
|
|
74
|
+
odoo/addons/account_financial_report/tests/test_open_items.py,sha256=cTsn_ALphkXFNRioLibY7m-eX66hdCfNY_IxaECQuKU,2536
|
|
75
|
+
odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=gfbLsraeS1pFldHC_4bi3eZXRdGJrElWPaR6-ZLuLeM,27788
|
|
76
|
+
odoo/addons/account_financial_report/tests/test_vat_report.py,sha256=yY4mOv_6FS5gNE-2JC3s3aFFosLLqKy1UtkDDMhDtH8,14705
|
|
77
77
|
odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml,sha256=xVTv70rbpp2i93mwYhGq6wI6B11_nsiMJSPexrHjxZM,1764
|
|
78
78
|
odoo/addons/account_financial_report/view/account_view.xml,sha256=9KKmGXEEvyUygmVrWIR3rvqJICCHvbGayGwZ40tI1iA,534
|
|
79
79
|
odoo/addons/account_financial_report/view/report_aged_partner_balance.xml,sha256=EUjo6LxHznk2wdKQCO9VR83YzPLAEFZ7DeiaHmtxvQQ,341
|
|
@@ -84,20 +84,20 @@ odoo/addons/account_financial_report/view/report_trial_balance.xml,sha256=QRzD5Z
|
|
|
84
84
|
odoo/addons/account_financial_report/view/report_vat_report.xml,sha256=Bc4DAlUg_g92GUgCRsLoC9Lf0yzfm6sh_ZrPtVACywA,321
|
|
85
85
|
odoo/addons/account_financial_report/view/res_config_settings_views.xml,sha256=ys8UruOoY09d4nNYIB9rrW8cnOwl1YfB3r8ifvA3t2Q,2514
|
|
86
86
|
odoo/addons/account_financial_report/wizard/__init__.py,sha256=5lngmjx-Vz-5k9nPILd25_1oVKKhUHnYhjAOMgdQHPY,243
|
|
87
|
-
odoo/addons/account_financial_report/wizard/abstract_wizard.py,sha256=
|
|
88
|
-
odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py,sha256=
|
|
87
|
+
odoo/addons/account_financial_report/wizard/abstract_wizard.py,sha256=XyRzzc1ZCqsjBXSIY8XZXLXKYXPmBc3fHWPReuH9b8M,2339
|
|
88
|
+
odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py,sha256=5Wlg8glISkWUeRn4fVqhtLk_r1Q8MWZS72ToqctvIeE,6171
|
|
89
89
|
odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard_view.xml,sha256=P4y5oItOq_1xovOhpjCU-9JzIvT2HH00tXWYFmMhnMo,3996
|
|
90
|
-
odoo/addons/account_financial_report/wizard/general_ledger_wizard.py,sha256=
|
|
91
|
-
odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml,sha256=
|
|
92
|
-
odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py,sha256=
|
|
93
|
-
odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml,sha256=
|
|
94
|
-
odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=
|
|
95
|
-
odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=
|
|
96
|
-
odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=
|
|
90
|
+
odoo/addons/account_financial_report/wizard/general_ledger_wizard.py,sha256=2qqgRS2YY-gY7nPfN538GJwUtAj611EvOqZJaZ4s9wA,12710
|
|
91
|
+
odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml,sha256=eoE8H_61c-3ZiSq_ZnAPwpGLuC9c17Nx6ByaDwiPSvY,7789
|
|
92
|
+
odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py,sha256=wpYPgDkWwju2I30Z_jzIZXQCcXZ-SK9FK5MuoXdHe38,5781
|
|
93
|
+
odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml,sha256=1CPPn9RNE0t0T7FmrThkPWOf8_7aKTJDrHJq0FjqdfI,3015
|
|
94
|
+
odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=teW3_8o4V-eRyc8n0_sfXlDHmUKnXw2zzc_nympgFFU,7628
|
|
95
|
+
odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=INn_LZdsT_sj2BpBx6aeZC0oU2z9E_xFTNaHaMKYsFk,4799
|
|
96
|
+
odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=ynsDMmq6bGCRvoQC_geAiFbkB_FjAuw8bEsPereDf_4,11459
|
|
97
97
|
odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=io5d8plYx9YktR79IJMoENQU1CV1HPwdBVamAN4zt7Y,7277
|
|
98
|
-
odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=
|
|
98
|
+
odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=uWfcEEjjtk2UTt2dgOcEaOwDwZLd7Ga7hZNjAEEEbOw,3659
|
|
99
99
|
odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml,sha256=T3P81O4csDGP7Jmf7eAtmbIIldja3IoXbBmweMMt8vA,2330
|
|
100
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
101
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
102
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
103
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
100
|
+
odoo_addon_account_financial_report-17.0.1.8.0.dist-info/METADATA,sha256=pa_e9gY_tSIHCrTx1wwnFrN0v2Is8DNQHuP-oi2ut4w,7767
|
|
101
|
+
odoo_addon_account_financial_report-17.0.1.8.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
102
|
+
odoo_addon_account_financial_report-17.0.1.8.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
103
|
+
odoo_addon_account_financial_report-17.0.1.8.0.dist-info/RECORD,,
|
|
File without changes
|