Skip to content

Commit 8269312

Browse files
committed
Merge PR #76 into 16.0
Signed-off-by pedrobaeza
2 parents c85d29a + 8f1b0ae commit 8269312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account_budget_oca/models/account_budget.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _compute_practical_amount(self):
151151
acc_ids = line.general_budget_id.account_ids.ids
152152
date_to = line.date_to
153153
date_from = line.date_from
154-
if line.analytic_account_id.id:
154+
if line.analytic_account_id.id and date_from and date_to:
155155
self.env.cr.execute(
156156
"""
157157
SELECT SUM(amount)

0 commit comments

Comments
 (0)