Skip to content

Commit

Permalink
[FIX] Onchange product in sale order line
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Jan 2, 2025
1 parent 3b19b4d commit 1c077b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rental_pricelist/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ def _onchange_product_id(self):
uom_ids = line._get_product_rental_uom_ids()
if line.product_uom.id not in uom_ids:
line.product_uom = uom_ids and uom_ids[0] or False
return True

@api.onchange("product_uom", "product_uom_qty")
def _onchange_product_uom(self):
Expand All @@ -270,7 +269,6 @@ def _onchange_product_uom(self):
)
)[-1]
line.product_id = line.display_product_id._get_rental_service(key)
return True

@api.onchange("start_date", "end_date", "product_uom")
def _onchange_start_end_date(self):
Expand Down

0 comments on commit 1c077b2

Please sign in to comment.