Skip to content

Commit

Permalink
[FIX]pms: compute_service_line_ids bug self use by record
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Oct 12, 2023
1 parent 391eee3 commit 8e2cdbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pms/models/pms_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ def _compute_service_line_ids(self):
]
# 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:
Expand Down

0 comments on commit 8e2cdbe

Please sign in to comment.