From ef4f512e78bf0fc922c112aa1f1aace7a30c85e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Sep 2021 23:29:29 +0200 Subject: [PATCH] Make required storage of product cost price --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index df90953633..843c2f06e3 100644 --- a/product.py +++ b/product.py @@ -711,7 +711,7 @@ class ProductCostPrice(ModelSQL, CompanyValueMixin): }, depends=['company']) cost_price = fields.Numeric( - "Cost Price", digits=price_digits) + "Cost Price", required=True, digits=price_digits) @classmethod def __register__(cls, module_name):