odoo-addon-account-financial-report 17.0.1.7.0.1__py3-none-any.whl → 17.0.1.8.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/ar.po +16 -0
- odoo/addons/account_financial_report/i18n/ca.po +16 -0
- odoo/addons/account_financial_report/i18n/de.po +16 -0
- odoo/addons/account_financial_report/i18n/es.po +16 -0
- odoo/addons/account_financial_report/i18n/es_AR.po +16 -0
- odoo/addons/account_financial_report/i18n/es_MX.po +16 -0
- odoo/addons/account_financial_report/i18n/fr.po +16 -0
- odoo/addons/account_financial_report/i18n/fr_CH.po +16 -0
- odoo/addons/account_financial_report/i18n/hr.po +16 -0
- odoo/addons/account_financial_report/i18n/hr_HR.po +16 -0
- odoo/addons/account_financial_report/i18n/it.po +19 -3
- odoo/addons/account_financial_report/i18n/ja.po +16 -0
- odoo/addons/account_financial_report/i18n/nl.po +16 -0
- odoo/addons/account_financial_report/i18n/nl_NL.po +16 -0
- odoo/addons/account_financial_report/i18n/pt.po +16 -0
- odoo/addons/account_financial_report/i18n/pt_BR.po +16 -0
- odoo/addons/account_financial_report/i18n/ro.po +16 -0
- odoo/addons/account_financial_report/i18n/sv.po +16 -0
- odoo/addons/account_financial_report/i18n/tr.po +16 -0
- 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.1.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.1.dist-info}/RECORD +53 -53
- {odoo_addon_account_financial_report-17.0.1.7.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.1.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.1.dist-info}/top_level.txt +0 -0
|
@@ -865,6 +865,11 @@ msgstr "İş Ortakları filtrele"
|
|
|
865
865
|
msgid "Foreign Currency"
|
|
866
866
|
msgstr "Yabancı Para Birimi"
|
|
867
867
|
|
|
868
|
+
#. module: account_financial_report
|
|
869
|
+
#: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
|
|
870
|
+
msgid "Format"
|
|
871
|
+
msgstr ""
|
|
872
|
+
|
|
868
873
|
#. module: account_financial_report
|
|
869
874
|
#: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
|
|
870
875
|
#: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
|
|
@@ -1127,6 +1132,17 @@ msgstr "Yevmiye Defteri XLSX Rapor"
|
|
|
1127
1132
|
msgid "Journals"
|
|
1128
1133
|
msgstr "Yevmiyeler"
|
|
1129
1134
|
|
|
1135
|
+
#. module: account_financial_report
|
|
1136
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_abstract_wizard__label_text_limit
|
|
1137
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__label_text_limit
|
|
1138
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__label_text_limit
|
|
1139
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__label_text_limit
|
|
1140
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__label_text_limit
|
|
1141
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__label_text_limit
|
|
1142
|
+
#: model:ir.model.fields,field_description:account_financial_report.field_vat_report_wizard__label_text_limit
|
|
1143
|
+
msgid "Label Text Limit"
|
|
1144
|
+
msgstr ""
|
|
1145
|
+
|
|
1130
1146
|
#. module: account_financial_report
|
|
1131
1147
|
#: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_uid
|
|
1132
1148
|
#: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_uid
|
|
@@ -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)
|