Browse Source

Feb 06 [UPDT] : Updated 'dynamic_accounts_report'

pull/313/merge
AjmalCybro 3 months ago
parent
commit
821949fbc5
  1. 7
      dynamic_accounts_report/models/dynamic_balance_sheet_report.py

7
dynamic_accounts_report/models/dynamic_balance_sheet_report.py

@ -195,10 +195,13 @@ class ProfitLossReport(models.TransientModel):
**account_entries}
datas.append(data)
else:
current_year = fields.Date.today().year
date_from = financial_report_id.date_from or f'{current_year}-01-01'
date_to = financial_report_id.date_to or f'{current_year}-12-31'
account_move_lines = self.env['account.move.line'].search(
[('parent_state', 'in', target_move),
('date', '>=', f'{current_year}-01-01'),
('date', '<=', f'{current_year}-12-31')])
('date', '>=', date_from),
('date', '<=', date_to)])
lists = [{'id': rec.id,
'value': [eval(i) for i in
rec.analytic_distribution.keys()]}

Loading…
Cancel
Save