Ver código fonte

fix: Provision to ignore disabled link validations in a doctype

version-14
deepeshgarg007 5 anos atrás
pai
commit
5787ea3c5a
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py Ver arquivo

@@ -464,7 +464,7 @@ class BaseDocument(object):
or frappe.flags.in_patch
):
disabled = frappe.get_value(doctype, self.get(df.fieldname), 'disabled')
if disabled:
if disabled and (not self.flags.ignore_disabled):
frappe.throw(_("{0} is disabled").format(frappe.bold(self.get(df.fieldname))))
else:
doctype = self.get(df.options)


Carregando…
Cancelar
Salvar