From 5b2d7cb12ce93c1e6426388e85567dd053ffd1c9 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 5 Jul 2017 13:47:17 +0530 Subject: [PATCH] [Fix] Not able to rename the company if it's linked with the single doctype which has mandatory fields (#3614) --- frappe/model/rename_doc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/model/rename_doc.py b/frappe/model/rename_doc.py index e9082703cd..359238be08 100644 --- a/frappe/model/rename_doc.py +++ b/frappe/model/rename_doc.py @@ -162,6 +162,7 @@ def update_link_field_values(link_fields, old, new, doctype): single_doc.set(field['fieldname'], new) # update single docs using ORM rather then query # as single docs also sometimes sets defaults! + single_doc.flags.ignore_mandatory = True single_doc.save(ignore_permissions=True) except ImportError: # fails in patches where the doctype has been renamed