diff --git a/dynamic_accounts_report/__manifest__.py b/dynamic_accounts_report/__manifest__.py index 967d2c973..ffb80ddea 100644 --- a/dynamic_accounts_report/__manifest__.py +++ b/dynamic_accounts_report/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'Odoo18 Dynamic Accounting Reports', - 'version': '18.0.1.2.3', + 'version': '18.0.1.2.4', 'category': 'Accounting', 'summary': "Odoo 18 Accounting Financial Reports,Dynamic Accounting Reports, Dynamic Financial Reports,Dynamic Report Odoo18, Odoo18,Financial Reports, Odoo18 Accounting,Accounting, Odoo Apps", 'description': "This module creates dynamic Accounting General Ledger, Trial" diff --git a/dynamic_accounts_report/doc/RELEASE_NOTES.md b/dynamic_accounts_report/doc/RELEASE_NOTES.md index 63b677466..8d013e80d 100644 --- a/dynamic_accounts_report/doc/RELEASE_NOTES.md +++ b/dynamic_accounts_report/doc/RELEASE_NOTES.md @@ -18,4 +18,10 @@ #### 16.05.2025 #### Version 18.0.1.2.3 #### UPDT -- Bug Fixing and added thousand seperators \ No newline at end of file +- Bug Fixing and added thousand separators + +#### 28.07.2025 +#### Version 18.0.1.2.4 +#### UPDT +- Bug Fixing in the accounting report (Trial Balance). +- \ No newline at end of file diff --git a/dynamic_accounts_report/models/account_trial_balance.py b/dynamic_accounts_report/models/account_trial_balance.py index d3117e49b..3d765089e 100644 --- a/dynamic_accounts_report/models/account_trial_balance.py +++ b/dynamic_accounts_report/models/account_trial_balance.py @@ -115,6 +115,7 @@ class AccountTrialBalance(models.TransientModel): :return: List of dictionaries representing the financial report. :rtype: list """ + if options == {}: options = None if options is None: @@ -207,7 +208,7 @@ class AccountTrialBalance(models.TransientModel): domain = [('date', '>=', com_start_date), ('account_id', '=', account_id.id), ('date', '<=', com_end_date), - ('parent_state', 'in', option_domain), ] + ('parent_state', 'in', option_domain)] if journal_list: domain.append( ('journal_id', 'in', journal_list), ) @@ -243,15 +244,14 @@ class AccountTrialBalance(models.TransientModel): ('parent_state', 'in', option_domain), ] if journal_list: domain.append( - ('journal_id', 'in', journal_list), ) + ('journal_id', 'in', journal_list)) if analytic: domain.append( ('analytic_line_ids', 'in', analytic)) if method is not None and 'cash' in method: domain.append(('journal_id', 'in', self.env.company.tax_cash_basis_journal_id.ids)) - move_lines = self.env['account.move.line'].search( - domain) + move_lines = self.env['account.move.line'].search(domain) dynamic_date_num[ f"dynamic_date_num{i}"] = 'Q' + ' ' + str( get_quarter_number(com_start_date)) + ' ' + str( @@ -265,7 +265,7 @@ class AccountTrialBalance(models.TransientModel): domain = [('date', '>=', start_date), ('account_id', '=', account_id.id), ('date', '<=', end_date), - ('parent_state', 'in', option_domain), ] + ('parent_state', 'in', option_domain)] if journal_list: domain.append( ('journal_id', 'in', journal_list), ) @@ -449,4 +449,4 @@ class AccountTrialBalance(models.TransientModel): workbook.close() output.seek(0) response.stream.write(output.read()) - output.close() \ No newline at end of file + output.close() diff --git a/dynamic_accounts_report/models/cash_book_report.py b/dynamic_accounts_report/models/cash_book_report.py index 75db8e042..6501a5c80 100644 --- a/dynamic_accounts_report/models/cash_book_report.py +++ b/dynamic_accounts_report/models/cash_book_report.py @@ -191,8 +191,7 @@ class CashBookReport(models.TransientModel): lambda x: x.account_id.id == account['id']) move_line_data = move_lines.read( ['date', 'journal_id', 'partner_id', 'move_name', 'debit', - 'move_id', - 'credit', 'name', 'ref']) + 'move_id', 'credit', 'name', 'ref']) data[move_lines.mapped('account_id').display_name] = move_line_data currency_id = self.env.company.currency_id.symbol move_lines_total[move_lines.mapped('account_id').display_name] = { diff --git a/dynamic_accounts_report/report/bank_book_templates.xml b/dynamic_accounts_report/report/bank_book_templates.xml index cf9379086..8505880e4 100644 --- a/dynamic_accounts_report/report/bank_book_templates.xml +++ b/dynamic_accounts_report/report/bank_book_templates.xml @@ -117,9 +117,9 @@