From d25719cdf2b8a863c1a855f2e42e9c3a43580f66 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 6 Sep 2018 10:29:20 +0200 Subject: [PATCH] [FIX] website_sale: customer_lead in the shop Let's consider a product P with a sale_delay = 10 When creating a SO for P in the backend, the customer_lead is correctly set to 10. But when creating a SO in the shop for P, the customer_lead was not correctly set. opw:1880577 --- addons/website_sale/models/sale_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_sale/models/sale_order.py b/addons/website_sale/models/sale_order.py index 987bdaa6a66..bf20ac1814c 100644 --- a/addons/website_sale/models/sale_order.py +++ b/addons/website_sale/models/sale_order.py @@ -105,6 +105,7 @@ class SaleOrder(models.Model): 'order_id': order_id, 'product_uom': product.uom_id.id, 'price_unit': pu, + 'customer_lead': product.sale_delay, } @api.multi