From dd8dc0d414f85bab48717265132827fbba76cffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Mar 2023 23:00:02 +0100 Subject: [PATCH] Add One2Many lead times to product template The One2Many can be used by the MultiValue field to speed up computation. Closes #12133 --- modules/sale/product.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/sale/product.py b/modules/sale/product.py index ba6be52be1..7e3bdad481 100644 --- a/modules/sale/product.py +++ b/modules/sale/product.py @@ -58,6 +58,8 @@ class Template(metaclass=PoolMeta): help="The time from confirming the sales order to sending the " "products.\n" "If empty the default lead time from the configuration is used.")) + lead_times = fields.One2Many( + 'product.lead_time', 'template', "Lead Times") @classmethod def __register__(cls, module_name):