Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.9 kB
1
Indexable
Never
### App Versions
```
{
	"erpnext": "14.18.3",
	"frappe": "14.28.2",
	"frappedesk": "0.7.0",
	"hrms": "1.0.0"
}
```
### Route
```
Form/System Settings/System Settings
```
### Trackeback
```
Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1607, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 26, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 305, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 356, in _save
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1082, in run_post_save_methods
    self.run_method("on_update")
  File "apps/frappe/frappe/model/document.py", line 914, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 911, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/core/doctype/system_settings/system_settings.py", line 63, in on_update
    self.set_defaults()
  File "apps/frappe/frappe/core/doctype/system_settings/system_settings.py", line 74, in set_defaults
    frappe.db.set_default(df.fieldname, self.get(df.fieldname))
  File "apps/frappe/frappe/database/database.py", line 971, in set_default
    frappe.defaults.set_default(key, val, parent, parenttype)
  File "apps/frappe/frappe/defaults.py", line 149, in set_default
    add_default(key, value, parent)
  File "apps/frappe/frappe/defaults.py", line 166, in add_default
    _clear_cache(parent)
  File "apps/frappe/frappe/defaults.py", line 244, in _clear_cache
    frappe.clear_cache(user=parent if parent not in common_default_keys else None)
  File "apps/frappe/frappe/__init__.py", line 884, in clear_cache
    frappe.cache_manager.clear_user_cache()
  File "apps/frappe/frappe/cache_manager.py", line 89, in clear_user_cache
    clear_global_cache()
  File "apps/frappe/frappe/cache_manager.py", line 105, in clear_global_cache
    frappe.setup_module_map()
  File "apps/frappe/frappe/__init__.py", line 1538, in setup_module_map
    for module in get_module_list(app):
  File "apps/frappe/frappe/__init__.py", line 1378, in get_module_list
    return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
  File "apps/frappe/frappe/__init__.py", line 1327, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'waba_integration'

```
### Request Data
```
{
	"type": "POST",
	"args": {
		"doc": "{\"name\":\"System Settings\",\"owner\":\"Administrator\",\"modified\":\"2023-03-30 19:20:43.357830\",\"modified_by\":\"ukwuezeobinna@gmail.com\",\"docstatus\":0,\"idx\":\"0\",\"app_name\":\"Frappe\",\"country\":\"Nigeria\",\"language\":\"en\",\"time_zone\":\"Africa/Lagos\",\"enable_onboarding\":1,\"setup_complete\":1,\"date_format\":\"dd-mm-yyyy\",\"time_format\":\"HH:mm:ss\",\"number_format\":\"#,###.##\",\"float_precision\":\"3\",\"currency_precision\":\"\",\"first_day_of_the_week\":\"Sunday\",\"backup_limit\":3,\"encrypt_backup\":0,\"enable_scheduler\":1,\"dormant_days\":4,\"apply_strict_user_permissions\":0,\"allow_guests_to_upload_files\":0,\"session_expiry\":\"24:00\",\"session_expiry_mobile\":\"720:00\",\"document_share_key_expiry\":30,\"deny_multiple_sessions\":0,\"allow_login_using_mobile_number\":0,\"allow_login_using_user_name\":0,\"disable_user_pass_login\":0,\"allow_error_traceback\":1,\"strip_exif_metadata_from_uploaded_images\":1,\"allow_older_web_view_links\":0,\"apply_perm_level_on_api_calls\":0,\"logout_on_password_reset\":\"*****\",\"force_user_to_reset_password\":0,\"reset_password_link_expiry_duration\":\"*****\",\"password_reset_limit\":\"*****\",\"enable_password_policy\":\"*****\",\"minimum_password_score\":\"*****\",\"allow_consecutive_login_attempts\":0,\"allow_login_after_fail\":60,\"enable_two_factor_auth\":0,\"bypass_2fa_for_retricted_ip_users\":0,\"bypass_restrict_ip_check_if_2fa_enabled\":0,\"two_factor_method\":\"OTP App\",\"lifespan_qrcode_image\":0,\"otp_issuer_name\":\"Frappe Framework\",\"email_retry_limit\":3,\"disable_standard_email_footer\":1,\"hide_footer_in_auto_email_reports\":0,\"attach_view_link\":1,\"enable_prepared_report_auto_deletion\":1,\"prepared_report_expiry_period\":30,\"max_auto_email_report_per_user\":20,\"disable_system_update_notification\":0,\"disable_change_log_notification\":0,\"doctype\":\"System Settings\",\"__last_sync_on\":\"2023-04-03T05:10:55.474Z\",\"__unsaved\":1}",
		"action": "Save"
	},
	"btn": {
		"jQuery3600051792052641285391": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 653,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs"
}
```
### Response Data
```
{
	"exception": "ModuleNotFoundError: No module named 'waba_integration'"
}
```