Browse Source

Jun 21: [FIX] Bug Fixed 'dynamic_accounts_report'

pull/320/head
RisvanaCybro 10 months ago
parent
commit
96ab0282d8
  1. 2
      dynamic_accounts_report/__manifest__.py
  2. 5
      dynamic_accounts_report/wizard/balance_sheet.py

2
dynamic_accounts_report/__manifest__.py

@ -25,7 +25,7 @@
'version': '16.0.1.0.11', 'version': '16.0.1.0.11',
'category': 'Accounting', 'category': 'Accounting',
'live_test_url': 'https://www.youtube.com/watch?v=gVQi9q9Rs-E&t=5s', '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" 'description': "Dynamic Financial Reports, DynamicFinancialReports, FinancialReport, Accountingreports, odoo reports, odoo"
"This module creates dynamic Accounting General Ledger, Trial Balance, Balance Sheet " "This module creates dynamic Accounting General Ledger, Trial Balance, Balance Sheet "
"Proft and Loss, Cash Flow Statements, Partner Ledger," "Proft and Loss, Cash Flow Statements, Partner Ledger,"

5
dynamic_accounts_report/wizard/balance_sheet.py

@ -25,7 +25,7 @@ class BalanceSheetView(models.TransientModel):
analytic_ids = fields.Many2many( analytic_ids = fields.Many2many(
"account.analytic.account", string="Analytic Accounts") "account.analytic.account", string="Analytic Accounts")
# analytic_tag_ids = fields.Many2many("account.analytic.tag", # analytic_tag_ids = fields.Many2many("account.analytic.tag",
# string="Analyt58ic Tags") # string="Analytic Tags")
display_account = fields.Selection( display_account = fields.Selection(
[('all', 'All'), ('movement', 'With movements'), [('all', 'All'), ('movement', 'With movements'),
('not_zero', 'With balance is not equal to 0')], ('not_zero', 'With balance is not equal to 0')],
@ -124,7 +124,8 @@ class BalanceSheetView(models.TransientModel):
def filter_movelines_parents(obj): def filter_movelines_parents(obj):
for each in 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: if each['account'] in move_line_accounts:
report_lines_move.append(each) report_lines_move.append(each)
parent_list.append(each['p_id']) parent_list.append(each['p_id'])

Loading…
Cancel
Save