reportview: save via wrapper - normal user not allowed to save standard report

This commit is contained in:
Rushabh Mehta 2012-12-07 16:59:24 +05:30
parent c89ead85c5
commit 02e9d0d9bc
2 changed files with 1 additions and 2 deletions

View file

@ -71,7 +71,6 @@ div.appframe-marker {
.appframe-title {
font-size: 150%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;

View file

@ -243,7 +243,7 @@ def save_report():
d.ref_doctype = data['doctype']
d.json = data['json']
d.save()
webnotes.model_wrapper([d]).save()
webnotes.msgprint("%s saved." % d.name)
return d.name