We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c85d29a commit 8f1b0aeCopy full SHA for 8f1b0ae
account_budget_oca/models/account_budget.py
@@ -151,7 +151,7 @@ def _compute_practical_amount(self):
151
acc_ids = line.general_budget_id.account_ids.ids
152
date_to = line.date_to
153
date_from = line.date_from
154
- if line.analytic_account_id.id:
+ if line.analytic_account_id.id and date_from and date_to:
155
self.env.cr.execute(
156
"""
157
SELECT SUM(amount)
0 commit comments