def get_doc_module(module, doctype, name):
 module_name = u'{app}.{module}.{doctype}.{name}.{name}'.format(app=frappe.local.module_app[scrub(module)], doctype=scrub(doctype), module=scrub(module), name=scrub(name))
 return frappe.get_module(module_name)

def get_doc_module ( module , doctype , name ) : module_name = u'{app}.{module}.{doctype}.{name}.{name}' . format ( app = frappe . local . module_app [ scrub ( module ) ] , doctype = scrub ( doctype ) , module = scrub ( module ) , name = scrub ( name ) ) return frappe . get_module ( module_name )
get custom module for given document .