diff --git a/erpnext/regional/doctype/e_invoice_settings/e_invoice_settings.py b/erpnext/regional/doctype/e_invoice_settings/e_invoice_settings.py index 0780795b24e..3ce55c2622a 100644 --- a/erpnext/regional/doctype/e_invoice_settings/e_invoice_settings.py +++ b/erpnext/regional/doctype/e_invoice_settings/e_invoice_settings.py @@ -12,6 +12,6 @@ class EInvoiceSettings(Document): frappe.throw(_("You must add atleast one credentials to be able to use E Invoicing.")) prev_doc = self.get_doc_before_save() - if prev_doc.client_secret != self.client_secret or prev_doc.client_id != prev_doc.client_id: + if prev_doc.client_secret != self.client_secret or prev_doc.client_id != self.client_id: self.auth_token = None self.token_expiry = None