Error in project Milestones

19 views
Skip to first unread message

Hernan Gonzalez

unread,
Jun 14, 2013, 11:21:27 AM6/14/13
to erpnext-dev...@googlegroups.com
When a user with no system manager role cant make changes to milestones in projects, i get an "user not allowed to delete" error.
The user is marked as Project User, and Project Manager.
Also user cant delete projects from project list.
Looks like a problem in the event creation for milestones.

And one more thing, the user without system manager role, can't see the milestones in the calendar.

The console shows the following text:

Starting up... all-app.min.js:2752
Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 36, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 284, in save self.run_method('on_update') File "../lib/webnotes/model/bean.py", line 218, in run_method getattr(self.obj, method)() File "../app/projects/doctype/project/project.py", line 68, in on_update self.add_calendar_event() File "../app/projects/doctype/project/project.py", line 72, in add_calendar_event self.delete_events() File "../app/projects/doctype/project/project.py", line 94, in delete_events where ref_type=%s and ref_name=%s""", (self.doc.doctype, self.doc.name))) File "../lib/webnotes/__init__.py", line 335, in delete_doc webnotes.model.utils.delete_doc(doctype, n) File "../lib/webnotes/model/utils.py", line 163, in delete_doc check_permission_and_not_submitted(doctype, name) File "../lib/webnotes/model/utils.py", line 190, in check_permission_and_not_submitted webnotes.msgprint(_("User not allowed to delete."), raise_exception=True) File "../lib/webnotes/__init__.py", line 135, in msgprint raise ValidationError, msg ValidationError: User not allowed to delete. all-app.min.js:307
User not allowed to delete.
Message has been deleted

Hernan Gonzalez

unread,
Jun 14, 2013, 12:07:28 PM6/14/13
to erpnext-dev...@googlegroups.com
Update, the same thing happens in demo.erpnext.com when a milestone has a status update.

Rushabh Mehta

unread,
Jun 15, 2013, 1:06:15 AM6/15/13
to erpnext-dev...@googlegroups.com
Thanks for reporting.

You can also directly use the GitHub issues section:



--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2946d823-44b9-405f-88f9-3e32de978879%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--



Twitter: @rushabh_mehta

Anand Doshi

unread,
Jun 17, 2013, 3:23:24 AM6/17/13
to erpnext-dev...@googlegroups.com
Hi Hernan,

We have fixed this issue.

Thanks,
Anand.

Reply all
Reply to author
Forward
0 new messages