changeset 8757954b39be in modules/product:default
details: https://hg.tryton.org/modules/product?cmd=changeset&node=8757954b39be
description:
Make required storage of product cost price
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9780dfb370fa -r 8757954b39be product.py
--- a/product.py Mon Sep 13 23:07:13 2021 +0200
+++ b/product.py Mon Sep 13 23:29:29 2021 +0200
@@ -711,7 +711,7 @@
},
depends=['company'])
cost_price = fields.Numeric(
- "Cost Price", digits=price_digits)
+ "Cost Price", required=True, digits=price_digits)
@classmethod
def __register__(cls, module_name):