Server Error: Please check your server logs or contact tech support

When i click: Order
Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 57, in application response = frappe.handler.handle() File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 19, in handle execute_cmd(cmd) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 36, in execute_cmd ret =, **frappe.form_dict) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 855, in call return fn(*args, **newargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 65, in getdoctype docs = get_meta_bundle(doctype) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 75, in get_meta_bundle bundle = [frappe.desk.form.meta.get_meta(doctype)] File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 22, in get_meta meta = FormMeta(doctype) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 32, in __init__ self.load_assets() File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 39, in load_assets self.add_code() File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 62, in add_code self._add_code(_get_path( + '.js'), '__js') File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 77, in _add_code js = get_js(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 185, in get_js return render_include(js) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/utils/", line 49, in render_include with open(frappe.get_app_path(app, app_path), 'r') as f: File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 645, in get_app_path return get_pymodule_path(app_name, *joins) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 660, in get_pymodule_path return os.path.join(os.path.dirname(get_module(scrub(modulename)).__file__), *joins) File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 622, in get_module return importlib.import_module(modulename) File "/usr/lib64/python2.7/importlib/", line 37, in import_module __import__(name) ImportError: No module named selling Report this issue
same issue in buying module

Go go frappe-bench/apps/frappe then git checkout 41f972c and subsequently you restart the server (I use bench clear-cache && bench restart).

@Gavin_Ji what branch are you working on?


Your fix will create issues when you’ll try to update.

There was an issue with the old VM, basically that the branch for frappe was in develop and the branch for erpnext was in master. So what we’ll do is change your erpnext branch into develop. You’ll notice a change in your UI in several places, and that’s because you’ll now be on ERPNext 7.

You’ll need to follow these steps:

cd /home/(user)/bench-repo
git checkout develop
git fetch origin develop
git reset --hard origin/develop
cd /home/(user)/frappe-bench
bench switch-to-develop
bench update
bench setup redis
bench setup supervisor
sudo supervisorctl reread
sudo supervisorctl update