From 729c1fbec10fb9cec12de0d99fd262ea25da4d5a Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 1 Oct 2015 13:05:18 +0200 Subject: [PATCH] [FIX] sale: onchange for sale_delay/customer_lead not needed as it is in sale_stock --- addons/sale/sale.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index b2651d143ab..b4ef4e036fc 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -498,11 +498,6 @@ class SaleOrderLine(models.Model): for line in self: line.price_reduce = line.price_subtotal / line.product_uom_qty if line.product_uom_qty else 0.0 - @api.onchange('product_id') - def _onchange_product_id(self): - for line in self: - line.customer_lead = line.product_id and line.product_id.sale_delay or 0.0 - @api.multi @api.onchange('order_id', 'product_id') def _compute_tax_id(self):