From c925a38f797b772cc95d29ed6d8502f62314baf0 Mon Sep 17 00:00:00 2001 From: Gaurav Naik Date: Fri, 27 Apr 2018 15:31:11 +0530 Subject: [PATCH] Ignore mandatory for default warehouses (#13812) --- erpnext/setup/doctype/company/company.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 8812d8e821b..e56c0912e8f 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -122,6 +122,7 @@ class Company(Document): if not wh_detail["is_group"] else "" }) warehouse.flags.ignore_permissions = True + warehouse.flags.ignore_mandatory = True warehouse.insert() def create_default_accounts(self):