Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove validation "An Item Group exists with same name, please change the item name or rename the item group" #4705

Closed
1 task
anandpdoshi opened this issue Jan 29, 2016 · 0 comments

Comments

@anandpdoshi
Copy link
Contributor

anandpdoshi commented Jan 29, 2016

Traceback (innermost last):
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 28, in setup_complete
    frappe.get_attr(method)(args)
  File "/home/frappe/press/benches/1601271005/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py", line 32, in setup_complete
    create_items(args)
  File "/home/frappe/press/benches/1601271005/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py", line 331, in create_items
    "default_warehouse": default_warehouse
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 211, in insert
    self.run_post_save_methods()
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 613, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 557, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 712, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 695, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/model/document.py", line 551, in 
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe/press/benches/1601271005/apps/erpnext/erpnext/stock/doctype/item/item.py", line 89, in on_update
    self.validate_name_with_item_group()
  File "/home/frappe/press/benches/1601271005/apps/erpnext/erpnext/stock/doctype/item/item.py", line 444, in validate_name_with_item_group
    frappe.throw(_("An Item Group exists with same name, please change the item name or rename the item group"))
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/__init__.py", line 262, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/__init__.py", line 255, in msgprint
    _raise_exception()
  File "/home/frappe/press/benches/1601271005/apps/frappe/frappe/__init__.py", line 240, in _raise_exception
    raise raise_exception, encode(msg)
 ValidationError:

To Do:

  • Fix tree view generation in reports that have both Item Group and Item
@nabinhait nabinhait added this to the Shortlisted Issues (v7.2) milestone Nov 25, 2016
@rmehta rmehta removed the ux label Apr 27, 2017
@rohitwaghchaure rohitwaghchaure added this to the July-2017 milestone Jul 14, 2017
@rmehta rmehta modified the milestones: July-2017, August 2017 Aug 2, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants