[Fix] Not able to rename the company if it's linked with the single doctype which has mandatory fields (#3614)
This commit is contained in:
parent
43ccc84584
commit
5b2d7cb12c
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue