Error in project Milestones

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.



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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/13c62136-ab89-4bd9-8a29-fd1cc5e6de65%40googlegroups.com.

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

 

 

Update, the same thing happens in demo.erpnet.com when a milestone has a status update.

On Friday, June 14, 2013 12:21:27 PM UTC-3, Hernan Gonzalez wrote:

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.



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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/013a26b1-4426-4720-9947-ba9226f24bce%40googlegroups.com.

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

 

 

Update, the same thing happens in demo.erpnext.com when a milestone has a status update.

On Friday, June 14, 2013 12:21:27 PM UTC-3, Hernan Gonzalez wrote:

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.



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-forum+un...@googlegroups.com.

To post to this group, send email to er...@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.

 

 

Thanks for reporting.

You can also directly use the GitHub issues section:

https://github.com/webnotes/erpnext/issues/482


On Fri, Jun 14, 2013 at 9:37 PM, Hernan Gonzalez <nu...@gmail.com> wrote:
Update, the same thing happens in demo.erpnext.com when a milestone has a status update.


On Friday, June 14, 2013 12:21:27 PM UTC-3, Hernan Gonzalez wrote:
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.



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-forum+un…@googlegroups.com.

To post to this group, send email to er…@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



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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CANn8SWJ%3D102%2BxFCAV214zsnvAyO6-%2B6eyZAoYMvR-CCH7P1P0Q%40mail.gmail.com.

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

 

 

Hi Hernan,

We have fixed this issue.

Thanks,
Anand.

On 15-Jun-2013, at 10:36 AM, Rushabh Mehta <rm...@gmail.com> wrote:

Thanks for reporting.

You can also directly use the GitHub issues section:



On Fri, Jun 14, 2013 at 9:37 PM, Hernan Gonzalez <nu...@gmail.com> wrote:
Update, the same thing happens in demo.erpnext.com when a milestone has a status update.


On Friday, June 14, 2013 12:21:27 PM UTC-3, Hernan Gonzalez wrote:
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.



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-forum+un…@googlegroups.com.

To post to this group, send email to er…@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



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-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CANn8SWJ%3D102%2BxFCAV214zsnvAyO6-%2B6eyZAoYMvR-CCH7P1P0Q%40mail.gmail.com.

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

 

 




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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/6CA61567-49B9-4AF8-B678-F158F7E94A87%40erpnext.com.

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