Skip to content
Snippets Groups Projects
Commit 3dc45d3c authored by Foram Katharotiya's avatar Foram Katharotiya Committed by pvy
Browse files

[FIX] account_move: Added date domain to calculate initial balance for General...

[FIX] account_move: Added date domain to calculate initial balance for General & Partner Ledger report
parent 623b7cc0
No related branches found
No related tags found
No related merge requests found
......@@ -1101,6 +1101,8 @@ class AccountMoveLine(models.Model):
if context.get('date_from'):
if not context.get('strict_range'):
domain += ['|', (date_field, '>=', context['date_from']), ('account_id.user_type_id.include_initial_balance', '=', True)]
elif context.get('initial_bal'):
domain += [(date_field, '<', context['date_from'])]
else:
domain += [(date_field, '>=', context['date_from'])]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment