commit | c925a38f797b772cc95d29ed6d8502f62314baf0 | [log] [tgz] |
---|---|---|
author | Gaurav Naik <gauravnaik6288@gmail.com> | Fri Apr 27 15:31:11 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri Apr 27 15:31:11 2018 +0530 |
tree | 226a318eb7b58333b1ee41a7c965e108f791fdce | |
parent | c23230faea0b21bee663c57b1eea2cd2215ead88 [diff] |
Ignore mandatory for default warehouses (#13812)
diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 8812d8e..e56c091 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py
@@ -122,6 +122,7 @@ if not wh_detail["is_group"] else "" }) warehouse.flags.ignore_permissions = True + warehouse.flags.ignore_mandatory = True warehouse.insert() def create_default_accounts(self):