Commit Graph

68 Commits

Author SHA1 Message Date
bobrador
004ef506a5 [FIX] account_financial_report: Correct trial balance domain for analytic accounts
Clicking on the QWeb report for a balance grouped by analytic was causing an error because account.move.line does not have account_analytic_id.
This has been replaced with account_analytic_ids, which is the correct field.
2025-04-03 14:48:54 +02:00
chaule97
01f22b8256 [MIG] account_financial_report: Migration to 18.0 2024-12-04 14:40:57 +07:00
chaule97
c46e83a4a4 [IMP] account_financial_report: pre-commit auto fixes 2024-12-04 14:40:56 +07:00
Víctor Martínez
0e6c43603a [IMP] account_financial_report: Add grouping by analytical account in Trial balance
TT48969
2024-12-04 10:19:58 +07:00
Víctor Martínez
e4e301af0e [IMP] account_financial_report: Change t-esc and t-raw to t-out from Trial Balance report
TT48969
2024-12-04 10:12:22 +07:00
Víctor Martínez
9c59addd0f [IMP] account_financial_report: Add Amount cur. to General Ledger totals if the account has not set currency
Related to https://github.com/OCA/account-financial-reporting/pull/1235#issuecomment-2419269015

[FIX] account_financial_report: Avoid error in General ledger if the Show foreign currency checkbox is not checked.

Related to https://github.com/OCA/account-financial-reporting/pull/1236

TT51996
2024-11-29 15:38:41 +07:00
Víctor Martínez
01b2e35847 [IMP] account_financial_report: Change t-esc and t-raw to t-out from General Ledger report 2024-11-29 15:38:41 +07:00
Víctor Martínez
3d36527370 [FIX] account_financial_report: Display the values of Amount cur. + Cumul cur. values in general ledger only if necessary
The currency_id field of the lines is always set, so follow the same logic as
in report/templates/general_ledger and show the data only if the currency is set
in the account.

TT51204
2024-11-29 15:38:41 +07:00
pilarvargas-tecnativa
ad5a4d3481 [IMP] account_financial_report: Change font size
Set a larger font style for the html report with a
relative font size to make it responsive. For this,
a new html_container is defined so that this does
not affect the other reports and the font style is
customised only for the report in html view.

TT48995
2024-11-29 15:38:41 +07:00
Carolina Fernandez
6d6937346a [17.0][IMP] account_financial_report: Set custom intervales in aged report 2024-11-29 15:38:41 +07:00
eLBati
e00e8f8312 [FIX] account_financial_report: show currency name instead of dictionary
Steps:

 - Accounting > Reporting > OCA accounting reports > Journal Ledger
 - Select Date range and activate Foreign Currency

Get "{'name': 'EUR'} " in currency field

Desired: get EUR
2024-11-29 15:38:41 +07:00
Reyes4711
b7814418f7 [15.0][FIX] account_financial_report: generate ledger document
In general ledger report shows an error due to the fact that the ball_curr varible does not generated
2024-11-29 15:38:41 +07:00
Víctor Martínez
9063f74cee [FIX] account_financial_report: Prevent error related to currency from Trial Balance
Use case: Generate report (showing foreign currency) with accounts with defined currency.

Traceback:

Error to render compiling AST
AttributeError: 'int' object has no attribute 'decimal_places'
Template: account_financial_report.report_trial_balance_line
Path: /t/div/t[3]/t[1]/t/t/div/span/t
Node: <t t-esc="balance['initial_currency_balance']" t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}"/>

The error occured while rendering the template account_financial_report.report_trial_balance_line and evaluating the following expression: <t t-esc="balance['initial_currency_balance']" t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}"/>
2024-11-29 15:38:41 +07:00
Víctor Martínez
fce83228b9 [FIX] account_financial_report: Prevent error related to currency from General ledger
Use case: Generate report (showing foreign currency) with accounts with defined currency.

Traceback:

File "/odoo/odoo-server/odoo/addons/base/models/ir_qweb_fields.py", line 448, in value_to_html
fmt = "%.{0}f".format(display_currency.decimal_places)
AttributeError: 'int' object has no attribute 'decimal_places'

The above exception was the direct cause of the following exception:

Error to render compiling AST
AttributeError: 'int' object has no attribute 'decimal_places'
Template: account_financial_report.report_general_ledger_lines
Path: /t/div/div[2]/t[6]/t[1]/div[1]/t[1]/span/t
Node: <t t-raw="account_or_group_item_object['init_bal']['bal_curr']" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"/>

TT42804

[FIX] account_financial_report: Prevent error related to currency from General ledger

Use case: Generate xlsx report (showing foreign currency) with accounts with defined currency.

Traceback:

File "/opt/odoo/auto/addons/account_financial_report/report/abstract_report_xlsx.py", line 535, in _get_currency_amt_format
    field_name = "{}_{}".format(field_prefix, currency.name)
AttributeError: 'int' object has no attribute 'name'
2024-11-29 15:38:41 +07:00
David Ramia
2817ae074c [FIX] account_financial_report: Replace deprecated t-raw to t-out 2024-11-29 15:38:41 +07:00
Florian da Costa
4359fc8dcc [FIX] account_financial_report: Account group styling in qweb and xlsx 2024-11-29 15:38:41 +07:00
Víctor Martínez
babce27fd8 [IMP] account_financial_report: Trial balance changes:
- Show Initial balance and Ending balance only when it is necessary with currency + hide currency column
- Show currency in the correct column
- Create a dict with all keys when it does not exist
- Prevent wrong values

TT41158
2024-11-29 15:38:41 +07:00
Víctor Martínez
fcdf1ba8bf [FIX] account_financial_report: General ledger changes:
- Fix total_bal_curr value from General ledger to prevent wrong values
- Prevent wrong values

TT41041
2024-11-29 15:38:41 +07:00
Reyes4711
981680063e [16.0][FIX] account_financial_report: generate ledger document
In general ledger report shows an error due to the fact that the ball_curr varible does not generated
2024-11-29 15:38:41 +07:00
David Ramia
4de4c3d2b1 [MIG] account_financial_report: Migration to 16.0 2024-11-29 15:38:41 +07:00
Víctor Martínez
0e20eeb133 [FIX] account_financial_report: Change partner_domain to misc_grouped_domain in general_ledger.
TT39754
2024-11-29 15:38:41 +07:00
Víctor Martínez
10a1fa4858 [FIX] account_financial_report: Set the correct value of column 'Cumul cur.' in general ledger
TT39754
2024-11-29 15:38:41 +07:00
Víctor Martínez
c9e2b9d17b [IMP] account_financial_report: Improve domain to reduce code in general ledger.
TT39754
2024-11-29 15:38:41 +07:00
Omar (Comunitea)
8f6ee42a53 [IMP] account_financial_report: Completes the functionality of hide_parent_hierarchy_level field and fix the level of accounts for trial balance 2024-11-29 15:38:41 +07:00
Ernesto Tejeda
4af9e021a7 [IMP] account_financial_report: Remove 'Computed Accounts' option from 'trial balance'. 2024-11-29 15:38:41 +07:00
Víctor Martínez
f41e8a6bc2 [FIX] account_financial_report: Don't show cancelled items when clicking on interactive cells
TT39954
2024-11-29 15:38:41 +07:00
Víctor Martínez
f400a79317 [IMP] account_financial_report: Add tax grouping in general ledger
TT38721
2024-11-29 15:38:41 +07:00
Víctor Martínez
9807b68953 [IMP] account_financial_report: Refactor
TT38721
2024-11-29 15:38:41 +07:00
Víctor Martínez
4f8823b290 [IMP] account_financial_report: Add tax_line_id field to taxes column in general_ledger
TT38721
2024-11-29 15:38:41 +07:00
Víctor Martínez
50775bc204 [IMP] account_financial_report: Hide values that have the same currency as the company currency
An amount_different_company_currency cell type is added to apply the following logic:
- If the currency is the same as the company's currency, we will leave the value empty.
- If the currency is different from the company's currency, we will show the value.

TT38722
2024-11-29 15:38:41 +07:00
Víctor Martínez
2e678ee7b9 [IMP] account_financial_report: Add "Cumul cur." column to general_ledger.
TT38722
2024-11-29 15:38:41 +07:00
Víctor Martínez
0cd327f198 [IMP] account_financial_report: Remove "Cur." column (currency is now added in "Amount cur.") from general_ledger.
TT38722
2024-11-29 15:38:41 +07:00
Lois Rilo
4ac0f4efbb [IMP] account_financial_report: common format for all amounts
In the open items report, the currency original and residual
fields were being displayed as regular float fields. With
this change they are printed with the corresponding format
for the currency of the journal item.
2024-11-29 15:38:41 +07:00
Jasmin Solanki
2b45a4c62f [MIG] account_financial_report: Migration to 15.0 2024-11-29 15:38:41 +07:00
João Marques
f80eda0180 [FIX] account_financial_report: Filter column creation to have correct offset in Journal Ledger
Fixes https://github.com/OCA/account-financial-reporting/issues/815
Seems like a missing change from 0e3b4d2972
2024-11-29 15:38:41 +07:00
SimoRubi
e0a41eca2d [FIX] account_financial_report: Print report with details 2024-11-29 15:38:41 +07:00
valen
93d3792bae [IMP] account_financial_report: added 'auto sequence' option in Journal Ledger 2024-11-29 15:38:40 +07:00
João Marques
0b1044d039 [FIX] account_financial_report: filter by correct data in trial balance
When on a Trial Balance report and filtering by hierarchical accounts or for a foreing currency, an error was produced when generating the report.

The report fields were dependant on data that is no longer present, such as line data.

This uses the correct data provided when generating the report to avoid this errors

TT29261
2024-11-29 15:38:40 +07:00
João Marques
0abfff7f16 [FIX] account_financial_report: allow navigation on all fields
Pass res_id correctly to lines to allow navigation on the fields

In the open items ledger, the res_id attribute of the invoice
in the report was getting: (id, move_name)
The result was that, when clicking the line, it would redirect
to a new record, instead of the existing.
This passes only the id to the line, solving that issue.

Fix menu item name

TT29371
2024-11-29 15:38:40 +07:00
JordiMForgeFlow
9db2069f3f [FIX] account_financial_report: fix VAT report template 2024-11-29 15:38:40 +07:00
Alexandre D. Díaz
3ce1d6b4fc [FIX] account_financial_report: Actions 2024-11-29 15:38:40 +07:00
Alex Cuellar
e250c0583d [IMP] account_financial_report: black, isort, prettier 2024-11-29 15:38:40 +07:00
mreficent
dc3431b348 [UPD] Eficent -> ForgeFlow 2024-11-29 15:38:40 +07:00
Jordi Ballester Alomar
707b147c6c [IMP] account_financial_report:
* fix speed issue in VAT report
* rename Cost Center to Analytic Account in General Ledger
2024-11-29 15:38:40 +07:00
Joan Sisquella
74d5e67a76 [IMP] account_financial_report:
* filter by analytic_account
2024-11-29 15:38:40 +07:00
Jordi Ballester Alomar
e4377eb3bb [IMP] account_financial_report: multiple fixes and improvements 2024-11-29 15:38:40 +07:00
Joan Sisquella
cbaabca8ae [IMP] account_financial_report: open_items
* added option "show_partner_details"
2024-11-29 15:38:40 +07:00
Tonow-c2c
c00785cddd fixup! account_financial_report: Increase columns width in general ledger Before this commit, amounts such as "10'000.00 CHF" were exceeding their columns width. Label column could be reduced as it's printed correctly over two different lines. 2024-11-29 15:38:40 +07:00
Akim Juillerat
7d9eb6e5f3 account_financial_report: Increase columns width in general ledger
Before this commit, amounts such as "10'000.00 CHF" were exceeding their
columns width. Label column could be reduced as it's printed correctly
over two different lines.
2024-11-29 15:38:40 +07:00
Joan Sisquella
e23bfa9487 [FIX] account_financial_report: general_ledger
* centralization is only calculated on accounts where 'centralized' is True
* Cumul. Balance of each move_line fixed
* Ordering move_lines by date
* Fix trial_balance xlsx when not show_partner_details
2024-11-29 15:38:40 +07:00