From e7142bd507849fea95527bd6a9a98c48c1e96c51 Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Fri, 21 Feb 2025 15:38:31 +0100 Subject: [PATCH] fix: Add a default value for conversion factor when hidden --- erpnext/domains/stocks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/domains/stocks.yaml b/erpnext/domains/stocks.yaml index 6fd54d972d..cc26f7c872 100644 --- a/erpnext/domains/stocks.yaml +++ b/erpnext/domains/stocks.yaml @@ -24,6 +24,14 @@ restricted_fields: Item Default: - default_warehouse + +properties: + - doctype: "Sales Invoice Item" + fieldname: "conversion_factor" + property: "default" + value: 1 + + modules: - Stock -- GitLab