[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
This commit is contained in:
Goffin Simon
2018-09-06 10:29:20 +02:00
parent 3504529fb5
commit d25719cdf2
+1
View File
@@ -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