ソースを参照

[Fix] Not able to rename the company if it's linked with the single doctype which has mandatory fields (#3614)

version-14
rohitwaghchaure 8年前
committed by Makarand Bauskar
コミット
5b2d7cb12c
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      frappe/model/rename_doc.py

+ 1
- 0
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) single_doc.set(field['fieldname'], new)
# update single docs using ORM rather then query # update single docs using ORM rather then query
# as single docs also sometimes sets defaults! # as single docs also sometimes sets defaults!
single_doc.flags.ignore_mandatory = True
single_doc.save(ignore_permissions=True) single_doc.save(ignore_permissions=True)
except ImportError: except ImportError:
# fails in patches where the doctype has been renamed # fails in patches where the doctype has been renamed


読み込み中…
キャンセル
保存