From 9d4781697b21e5ff3380f8d2783ea49c5732344e Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 11 Jan 2016 09:28:43 +0100 Subject: [PATCH] [IMP] mrp,purchase,stock: Default lead times set to 0 Lead times are too advanced for most of our online users. Most of the companies just buy and sell and don't manage scheduling. As an example, when they do MTO, they purchase the same day they sold. The problem with current lead time is that users don't understand the dates produced on delivery orders and receptions. They even have receptions in the past, and they don't understand why. (customer lead time default to 7 and vendor lead time to 1, as well as security days, ...) --- addons/mrp/company.py | 2 +- addons/mrp/product.py | 2 +- addons/purchase/company.py | 2 +- addons/stock/product.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mrp/company.py b/addons/mrp/company.py index 2c290c3c0e9..e69235da007 100644 --- a/addons/mrp/company.py +++ b/addons/mrp/company.py @@ -10,5 +10,5 @@ class company(osv.osv): help="Security days for each manufacturing operation."), } _defaults = { - 'manufacturing_lead': lambda *a: 1.0, + 'manufacturing_lead': lambda *a: 0.0, } diff --git a/addons/mrp/product.py b/addons/mrp/product.py index 1891fd5dead..585901137bd 100644 --- a/addons/mrp/product.py +++ b/addons/mrp/product.py @@ -30,7 +30,7 @@ class product_template(osv.osv): } _defaults = { - 'produce_delay': 1, + 'produce_delay': 0, } diff --git a/addons/purchase/company.py b/addons/purchase/company.py index 46827a93708..5458297a889 100644 --- a/addons/purchase/company.py +++ b/addons/purchase/company.py @@ -10,7 +10,7 @@ class company(models.Model): help="Margin of error for vendor lead times. When the system " "generates Purchase Orders for procuring products, " "they will be scheduled that many days earlier " - "to cope with unexpected vendor delays.", default=1.0) + "to cope with unexpected vendor delays.", default=0.0) po_double_validation = fields.Selection([ ('one_step', 'Confirm purchase orders in one step'), diff --git a/addons/stock/product.py b/addons/stock/product.py index 6d348e54d68..e8693707a45 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -446,7 +446,7 @@ class product_template(osv.osv): } _defaults = { - 'sale_delay': 7, + 'sale_delay': 0, 'tracking': 'none', }