diff options
| author | Goffin Simon <sig@odoo.com> | 2018-09-06 10:29:20 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-09-06 10:29:20 +0200 |
| commit | d25719cdf2b8a863c1a855f2e42e9c3a43580f66 (patch) | |
| tree | 97ce7bfe4bb6321de26fa908ed3735c64fb119bd | |
| parent | 3504529fb5d8b2fa8c6fce862e4979b3dbb43c64 (diff) | |
[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
| -rw-r--r-- | addons/website_sale/models/sale_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
