Commit Graph

260 Commits

Author SHA1 Message Date
Henrik Norlin
02fc952cdb [FIX] account_financial_report: report_action javascript 2024-11-29 15:38:41 +07:00
Henrik Norlin
9bf114754e [IMP] account_financial_report: reversed variable only_one_unaffected_earnings_account 2024-11-29 15:38:41 +07:00
Víctor Martínez
0a4dd5df6c [FIX] account_financial_report: Filter correctly by account_type in General ledger
In v15 it was filtered by the internal_type field (type of account.account.type) to use
"other" (most of the accounts had it set). Now in v16, there is the account_type field
exists and has to be compatible. The in or not in operator is set to "simplify" the
domain and avoid having to set almost all types.
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
Víctor Martínez
20244734b4 [IMP] account_financial_report: Change Missing Partner as translatable
TT47771
2024-11-29 15:38:41 +07:00
Víctor Martínez
2643fdd484 [IMP] account_financial_report: Add Missing partner support in trial balance
If there are records without partner_id set and we show the detail of partners
we need to take into account those records grouped as "Missing partner".

TT47771
2024-11-29 15:38:41 +07:00
Christoph Abenthung
d2c0d9ccb8 [16.0][FIX]account_financial_report: missing accounts 2024-11-29 15:38:41 +07:00
Jairo Llopis
2671e21526 [FIX] account_financial_report: optimize computation of analytic accounts
Installing the module in a big DB was very slow.

I applied several optimizations to the method for working better with big datasets:
- Prefetch all analytic account distribution.
- Batch writes as much as possible.

@moduon MT-4982
2024-11-29 15:38:41 +07:00
Henrik Norlin
e6904a2449 [MIG] account_financial_report: Migration to 17.0 2024-11-29 15:38:41 +07:00
Henrik Norlin
0b128f03ee [IMP] account_financial_report: pre-commit auto fixes 2024-11-29 15:38:41 +07:00
jakobkrabbe
f202a3396a Translated using Weblate (Swedish)
Currently translated at 57.9% (146 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/sv/
2024-11-29 15:38:41 +07:00
Pedro M. Baeza
c07f2972bf Translated using Weblate (Spanish)
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/es/
2024-11-29 15:38:41 +07:00
OCA-git-bot
099d534621 [BOT] post-merge updates 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
Justinas Orechovas
d0c267eaa4 [FIX] account_financial_report: fixing bug when calculation of credit is dublicated 2024-11-29 15:38:41 +07:00
Adriano Prado
8d977ef463 Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.8% (249 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/pt_BR/
2024-11-29 15:38:41 +07:00
Yung-Wa
30d272a9ea Translated using Weblate (Dutch)
Currently translated at 84.9% (214 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/nl/
2024-11-29 15:38:41 +07:00
Alexis de Lattre
41a6c5b414 Translated using Weblate (French)
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/fr/
2024-11-29 15:38:41 +07:00
Adriano Prado
fbced32d8d Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.4% (248 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/pt_BR/
2024-11-29 15:38:41 +07:00
jakobkrabbe
4cb2dec19a Translated using Weblate (Swedish)
Currently translated at 14.2% (36 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/sv/
2024-11-29 15:38:41 +07:00
jakobkrabbe
4c692102b1 Added translation using Weblate (Swedish) 2024-11-29 15:38:41 +07:00
OCA-git-bot
f4ccf439ed [BOT] post-merge updates 2024-11-29 15:38:41 +07:00
Akim Juillerat
e9a88296ff Avoid error on installation with missing analytic account
When installing the module account_financial_report, a relational table between
account_move_line and account_analytic_account is created and computed.

However, if an analytic account was used only on draft invoices before being deleted,
its ID will remain in the JSON column analytic_distibution of account_move_line.
In that case we get a ForeignKeyViolation because the ID doesn't exist in
account_analytic_account table.

Therefore, we need to check if the ID exists during the computation to avoid
inserting it in the relational table and raising the error.
2024-11-29 15:38:41 +07:00
Adriano Prado
ac9050f3e9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 89.6% (226 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/pt_BR/
2024-11-29 15:38:41 +07:00
Francesco Foresti
d01c996115 Translated using Weblate (Italian)
Currently translated at 62.6% (158 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/it/
2024-11-29 15:38:41 +07:00
OCA-git-bot
e04bd65918 [BOT] post-merge updates 2024-11-29 15:38:41 +07:00
josep-tecnativa
35c26b2893 [IMP] account_financial_report: test performance improvement 2024-11-29 15:38:41 +07:00
Víctor Martínez
2492c112c7 Translated using Weblate (Spanish)
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/es/
2024-11-29 15:38:41 +07:00
Weblate
0fbb9fe4d7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/
2024-11-29 15:38:41 +07:00
OCA-git-bot
6f74778d39 [BOT] post-merge updates 2024-11-29 15:38:41 +07:00
Simone Rubino
630df3cc7e [FIX] account_financial_report: Empty format 2024-11-29 15:38:41 +07:00
OCA-git-bot
72211f3ef6 oca-github-bot post-merge updates 2024-11-29 15:38:41 +07:00
Aritz Olea
f16b46e4c5 [FIX] account_financial_report: Initial currency balance value on trial balance report 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
OCA-git-bot
2da30a0f74 [UPD] README.rst 2024-11-29 15:38:41 +07:00
Adriano Prado
103542906d Translated using Weblate (Portuguese (Brazil))
Currently translated at 89.2% (225 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/pt_BR/
2024-11-29 15:38:41 +07:00
Ivorra78
97e4ccb79e Translated using Weblate (Spanish)
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/es/
2024-11-29 15:38:41 +07:00
OCA-git-bot
428337a2c2 account_financial_report 16.0.1.3.5 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
Francesco Foresti
0637c898bf Translated using Weblate (Italian)
Currently translated at 62.6% (158 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/it/
2024-11-29 15:38:41 +07:00
Sandrine (ACSONE)
bdcd178b59 Translated using Weblate (French (France) (fr_FR))
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/fr_FR/
2024-11-29 15:38:41 +07:00
Sandrine (ACSONE)
799a41e54a Translated using Weblate (French)
Currently translated at 100.0% (252 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/fr/
2024-11-29 15:38:41 +07:00
mymage
2284ee01e5 Translated using Weblate (Italian)
Currently translated at 62.6% (158 of 252 strings)

Translation: account-financial-reporting-16.0/account-financial-reporting-16.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report/it/
2024-11-29 15:38:41 +07:00
OCA-git-bot
1145edd8b9 account_financial_report 16.0.1.3.4 2024-11-29 15:38:41 +07:00
OCA-git-bot
558dc23d7c account_financial_report 16.0.1.3.3 2024-11-29 15:38:41 +07:00
Víctor Martínez
14e3724cb4 [IMP] account_financial_report: Show move_name in entry column from general ledger report
It is not necessary to repeat part of the text shown in Ref - Label column.

TT42731
2024-11-29 15:38:41 +07:00
David Ramia
8048c116ff [FIX] account_financial_report: Fix report links with domain 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
OCA-git-bot
e607fba7db account_financial_report 16.0.1.3.2 2024-11-29 15:38:41 +07:00
@
d33d89ef62 [FIX] account_financial_report fix to take the id of the currency if is set, that fix the following error: opt/odoo/odoo/odoo/models.py", line 3681, in write
field.write(self, vals[fname])
  File "/opt/odoo/odoo/odoo/fields.py", line 3057, in write
    return self.write_batch([(records, value)])
  File "/opt/odoo/odoo/odoo/fields.py", line 3078, in write_batch
    return self.write_real(records_commands_list, create)
  File "/opt/odoo/odoo/odoo/fields.py", line 3254, in write_real
    flush()
  File "/opt/odoo/odoo/odoo/fields.py", line 3216, in flush
    comodel.create(to_create)
  File "<decorator-gen-69>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 348, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_fields.py", line 534, in create
    recs = super().create(vals_list)
  File "<decorator-gen-13>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 348, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/models.py", line 3886, in create
    records = self._create(data_list)
  File "/opt/odoo/odoo/odoo/models.py", line 3992, in _create
    cr.execute(query, params)
  File "<decorator-gen-3>", line 2, in execute
  File "/opt/odoo/odoo/odoo/sql_db.py", line 101, in check
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/sql_db.py", line 301, in execute
    res = self._obj.execute(query, params)
Exception

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

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
psycopg2.ProgrammingError: can't adapt type 'res.currency'
2024-11-29 15:38:41 +07:00