From 1c077b2559c294449dcc33aa08949057796bbf70 Mon Sep 17 00:00:00 2001 From: edescalona Date: Thu, 2 Jan 2025 10:24:36 -0500 Subject: [PATCH] [FIX] Onchange product in sale order line --- rental_pricelist/models/sale_order_line.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rental_pricelist/models/sale_order_line.py b/rental_pricelist/models/sale_order_line.py index bcd2e336..d73b7ecc 100644 --- a/rental_pricelist/models/sale_order_line.py +++ b/rental_pricelist/models/sale_order_line.py @@ -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): @@ -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):