Update frappe/custom/doctype/custom_field/custom_field.py
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
b1dd6f8545
commit
e8a0b5b873
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class CustomField(Document):
|
|||
frappe.throw(_("Fieldname not set for Custom Field"))
|
||||
|
||||
if self.fieldname in fieldnames:
|
||||
frappe.throw(_("A field with the name '{}' already exists in doctype {}.".format(self.fieldname, self.dt)))
|
||||
frappe.throw(_("A field with the name '{}' already exists in doctype {}.").format(self.fieldname, self.dt))
|
||||
|
||||
if self.get('translatable', 0) and not supports_translation(self.fieldtype):
|
||||
self.translatable = 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue