mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 22:52:10 +01:00
fix: public key is required on validate
This commit is contained in:
@@ -11,7 +11,7 @@ from frappe.custom.doctype.property_setter.property_setter import make_property_
|
||||
|
||||
class EInvoiceSettings(Document):
|
||||
def validate(self):
|
||||
mandatory_fields = ['client_id', 'client_secret', 'gstin', 'username', 'password', 'public_key']
|
||||
mandatory_fields = ['client_id', 'client_secret', 'gstin', 'username', 'password', 'public_key_file']
|
||||
for d in mandatory_fields:
|
||||
if not self.get(d):
|
||||
frappe.throw(_("{} is required").format(frappe.unscrub(d)), title=_("Missing Values"))
|
||||
|
||||
Reference in New Issue
Block a user