refactor: pass app as an argument to avoid duplicte function call
This commit is contained in:
parent
2e0db2d69e
commit
cae7759df6
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ def load_doctype_module(doctype, module=None, prefix="", suffix=""):
|
|||
module = module or get_doctype_module(doctype)
|
||||
app = get_module_app(module)
|
||||
key = (app, doctype, prefix, suffix)
|
||||
module_name = get_module_name(doctype, module, prefix, suffix)
|
||||
module_name = get_module_name(doctype, module, prefix, suffix, app)
|
||||
|
||||
if key not in doctype_python_modules:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue