diff --git a/dynamic_accounts_report/__manifest__.py b/dynamic_accounts_report/__manifest__.py index 942f33084..a50ee53c1 100644 --- a/dynamic_accounts_report/__manifest__.py +++ b/dynamic_accounts_report/__manifest__.py @@ -25,7 +25,7 @@ 'version': '16.0.1.0.11', 'category': 'Accounting', 'live_test_url': 'https://www.youtube.com/watch?v=gVQi9q9Rs-E&t=5s', - 'summary': "Odoo 17 Accounting Financial Reports,Dynamic Accounting Reports, Dynamic Financial Reports,Dynamic Report Odoo17, Odoo17,Financial Reports, Odoo17 Accounting,Accounting, Odoo Apps", + 'summary': "Odoo 16 Accounting Financial Reports", 'description': "Dynamic Financial Reports, DynamicFinancialReports, FinancialReport, Accountingreports, odoo reports, odoo" "This module creates dynamic Accounting General Ledger, Trial Balance, Balance Sheet " "Proft and Loss, Cash Flow Statements, Partner Ledger," diff --git a/dynamic_accounts_report/wizard/balance_sheet.py b/dynamic_accounts_report/wizard/balance_sheet.py index d4bbf86cc..0abf03912 100644 --- a/dynamic_accounts_report/wizard/balance_sheet.py +++ b/dynamic_accounts_report/wizard/balance_sheet.py @@ -25,7 +25,7 @@ class BalanceSheetView(models.TransientModel): analytic_ids = fields.Many2many( "account.analytic.account", string="Analytic Accounts") # analytic_tag_ids = fields.Many2many("account.analytic.tag", - # string="Analyt58ic Tags") + # string="Analytic Tags") display_account = fields.Selection( [('all', 'All'), ('movement', 'With movements'), ('not_zero', 'With balance is not equal to 0')], @@ -124,7 +124,8 @@ class BalanceSheetView(models.TransientModel): def filter_movelines_parents(obj): for each in obj: - if each['report_type'] == 'accounts': + if each['report_type'] == 'accounts' and 'account' in each and \ + each['account']: if each['account'] in move_line_accounts: report_lines_move.append(each) parent_list.append(each['p_id'])