mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: wrong plan avail when real avail is zero
This commit is contained in:
@@ -141,7 +141,7 @@ class PmsAvailabilityPlanRule(models.Model):
|
||||
|
||||
@api.depends("quota", "max_avail", "real_avail")
|
||||
def _compute_plan_avail(self):
|
||||
for record in self.filtered("real_avail"):
|
||||
for record in self:
|
||||
real_avail = record.real_avail
|
||||
plan_avail = min(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user