You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some Template Items when changing the default warehouse the below error is given when the Valuation Method is not shown and has not been changed
Context information (for bug reports)
Output of bench version
13.6
Stacktrace / full error message
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/data_import_legacy/importer.py", line 404, in upload
original.save()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
return self._save(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _save
self.run_post_save_methods()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
self.run_method("on_update")
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 859, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1148, in composer
return composed(self, method, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1131, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 853, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py", line 136, in on_update
self.update_variants()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py", line 804, in update_variants
update_variants(variants, self, publish_progress=False)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py", line 1301, in update_variants
variant.save()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 285, in save
return self._save(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 323, in _save
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 517, in _validate
self.validate_set_only_once()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 563, in validate_set_only_once
frappe.CannotChangeConstantError)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 432, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 411, in msgprint
_raise_exception()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 365, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.CannotChangeConstantError: Value cannot be changed for Valuation Method
The text was updated successfully, but these errors were encountered:
nameduser0
changed the title
bug: Value cannot be changed for Valuation Method
bug: frappe.exceptions.CannotChangeConstantError: Value cannot be changed for Valuation Method
Jul 29, 2021
Description of the issue
For some Template Items when changing the default warehouse the below error is given when the Valuation Method is not shown and has not been changed
Context information (for bug reports)
Output of
bench version
Stacktrace / full error message
The text was updated successfully, but these errors were encountered: