Sfoglia il codice sorgente

module.py: custom code fix

version-14
Rushabh Mehta 14 anni fa
parent
commit
b884581ac7
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      cgi-bin/webnotes/model/doctype.py
  2. +1
    -1
      cgi-bin/webnotes/modules/__init__.py

+ 1
- 1
cgi-bin/webnotes/model/doctype.py Vedi File

@@ -266,7 +266,7 @@ class _DocType:

# add custom script if present
from webnotes.model.code import get_custom_script
custom = get_custom_script(dt, 'Client') or ''
custom = get_custom_script(doc.name, 'Client') or ''
doc = doclist[0]
doc.fields['__client_script'] = Module(doc.module).get_doc_file('doctype', doc.name, '.js').read() + custom


+ 1
- 1
cgi-bin/webnotes/modules/__init__.py Vedi File

@@ -318,7 +318,7 @@ class JsModuleFile(ModuleFile):
# add custom script if present
from webnotes.model.code import get_custom_script
custom = get_custom_script(dt, 'Client') or ''
custom = get_custom_script(name, 'Client') or ''
return JsModuleFile(path).read() + custom


Caricamento…
Annulla
Salva