Closed johnlongland closed 2 years ago
We're seeing something similar:
erpnext - upstream/version-13
frappe - upstream/version-13
This usually happens on quotes, sales orders and the likes.
Traceback (most recent call last):
File "apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.py", line 109, in update_regional_tax_settings
frappe.get_attr(module_name)(country, company)
File "apps/frappe/frappe/__init__.py", line 1199, in get_attr
return getattr(get_module(modulename), methodname)
AttributeError: module 'erpnext.regional.germany.setup' has no attribute 'update_regional_tax_settings'
Country is set to Germany.
EDIT
update_regional_tax_settings
does not exist in module erpnext.regional.germany.setup
. LinkIt looks like taxes_setup.py
only checks whether the path exists:
def update_regional_tax_settings(country, company):
path = frappe.get_app_path('erpnext', 'regional', frappe.scrub(country))
if os.path.exists(path.encode("utf-8")): # <--------------
try:
module_name = "erpnext.regional.{0}.setup.update_regional_tax_settings".format(frappe.scrub(country))
frappe.get_attr(module_name)(country, company)
except Exception as e:
# Log error and ignore if failed to setup regional tax settings
frappe.log_error()
pass
For South Africa ensure that the company "VAT Setting" is added after fresh install
This issue has been automatically marked as inactive because it has not had recent activity and it wasn't validated by maintainer team. It will be closed within a week if no further activity occurs.
Description of the issue
Just after fresh V13 install and before any transactions or configuration is done , there is an error in the error_log
Context information (for bug reports)
Tried various installation methods ( manual and script ) to see if that has an effect but all installation method yields the same result
Output of
bench version
Steps to reproduce the issue
Observed result
Error on error_log
Expected result
No error in the error_log
Stacktrace / full error message
Additional information
When I install a fresh V13 server but set the country as India, the error does not occur Running on Digital Ocean droplet 2 CPU 4G-RAM
OS version / distribution,
ERPNext
install method, etc. node -v && npm -v && python3 -V && pip3 -V && yarn -v v12.22.6 6.14.15 Python 3.8.10 pip 21.2.4 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8) 1.22.15Ubuntu 20.04 LTS Server version: 10.4.21-MariaDB-