[FIX]pms: compute_service_line_ids bug self use by record

This commit is contained in:
Darío Lodeiros
2023-10-12 12:23:42 +02:00
parent 391eee3bf5
commit 8e2cdbec92

View File

@@ -414,8 +414,8 @@ class PmsService(models.Model):
]
# if service lines has only one line,
# set its day_qty to service product_qty
elif len(service.service_line_ids) == 1 and self.product_qty:
service.service_line_ids.day_qty = self.product_qty
elif len(service.service_line_ids) == 1 and service.product_qty:
service.service_line_ids.day_qty = service.product_qty
else:
if not service.service_line_ids: