From 4a27f8e70ffedf61490549b77bece668d686ae86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 4 Feb 2021 23:57:02 +0100 Subject: [PATCH] Add default value for default_lead_time This restores the default lead time removed in changeset 8850aa25cd14. By default a product should be delivered directly. issue10050 review324921002 --- product.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product.py b/product.py index 02205cefc8..2d7c468bba 100644 --- a/product.py +++ b/product.py @@ -20,6 +20,10 @@ class Configuration(metaclass=PoolMeta): "products.\n" "Used for products without a lead time.")) + @classmethod + def default_default_lead_time(cls, **pattern): + return datetime.timedelta(0) + class DefaultLeadTime(ModelSQL, CompanyValueMixin): "Product Default Lead Time"