Add One2Many lead times to product template

The One2Many can be used by the MultiValue field to speed up computation.

Closes #12133
This commit is contained in:
Cédric Krier committed 2023-03-13 23:00:02 +01:00
1 parent 721ae8dc69
commit dd8dc0d414
1 file changed
+2
+2
View File
@@ -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):