-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] account_financial_report: Migration to 18.0 #1253
[18.0][MIG] account_financial_report: Migration to 18.0 #1253
Conversation
<div class="row"> | ||
<div class="col-6 custom_footer"> | ||
<span | ||
t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t-esc
should be replaced with t-out
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0
'default_payable_accounts_only':1, | ||
}" | ||
/> | ||
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
groups_id
should be replaced with groups=
in the element
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0
# Author: Julien Coux | ||
# Copyright 2016 Camptocamp SA | ||
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) | ||
# Copyright 2021 Tecnativa - Jo??o Marques |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright 2021 Tecnativa - Jo??o Marques | |
# Copyright 2021 Tecnativa - João Marques |
@@ -0,0 +1,13 @@ | |||
# ?? 2011 Guewen Baconnier (Camptocamp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# ?? 2011 Guewen Baconnier (Camptocamp) | |
# © 2011 Guewen Baconnier (Camptocamp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check other files as well for similar issues
else: | ||
ag_pb_data[acc_id]["older"] += residual | ||
ag_pb_data[acc_id][prt_id]["older"] += residual | ||
if due_date: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to not have due_date
? It is set on line 59 due_date = today
befa9ce
to
ff0b491
Compare
Hi @henrybackman, I have optimized the query, can you check it again? |
ff0b491
to
8f9d339
Compare
LGTM |
This PR has the |
Please add #1257 to commit history |
Currently translated at 100.0% (329 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/pt_BR/
The number of computed account can be greater in certain databases with l10n modules.
Currently translated at 10.3% (34 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
Currently translated at 100.0% (329 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/pt_BR/
Currently translated at 23.1% (76 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
Currently translated at 23.1% (76 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
…cade `report_journal_ledger` is auto-vacuumed as any transient model, but has some ondelete="cascade" constraints that auto-remove subtables when a record is removed, doing this operation very slow when selecting these sub-records. Letting default ondelete="set null" would result in same performance bottleneck, as the select on sub-table is performed the same for setting "null" value on them. As a solution, and for avoiding a costly index operation, we delete by SQL sub-tables rows in advance. A bit of extra logic has been added for avoiding to remove that records if it's not the turn of vacuum the parent table.
Currently translated at 84.5% (278 of 329 strings) Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
* 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
Some reports crash if account move line implicated are Sections lines or Notes lines in an invoice
* Missing import causes failure when running Open Items with Date At in the past
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-reporting-17.0/account-financial-reporting-17.0-account_financial_report Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_financial_report/
…General Ledger report
…als if the account has not set currency Related to OCA#1235 (comment) [FIX] account_financial_report: Avoid error in General ledger if the Show foreign currency checkbox is not checked. Related to OCA#1236 TT51996
8f9d339
to
f403480
Compare
thanks, I have added these commits |
f403480
to
8cd27bd
Compare
Please add #1258 to commit history. |
…Trial Balance report TT48969
… Trial balance TT48969
e439180
to
591eec6
Compare
Please add #1261 to commit history. |
591eec6
to
01f22b8
Compare
/ocabot migration account_financial_report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on runboat
/ocabot merge nobump
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 5627c59. Thanks a lot for contributing to OCA. ❤️ |
TestTrialBalanceReport
based on SQL logic matching account codes to group prefixes.