Update frappe/custom/doctype/custom_field/custom_field.py

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
This commit is contained in:
theopen-institute 2020-05-30 14:34:27 +05:45 committed by GitHub
parent b1dd6f8545
commit e8a0b5b873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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