All primary objects can edit, view, create, add, save, add_to, and delete

svn: r19663
This commit is contained in:
Doug Blank
2012-05-26 18:48:20 +00:00
parent 7035384369
commit 0ba29c2d8b
23 changed files with 746 additions and 553 deletions

View File

@@ -385,7 +385,7 @@ def note_table(obj, user, action, url=None, *args):
note_ref.ref_object.text[:50])
retval += table.get_html()
if user.is_superuser and url and action == "view":
retval += make_button(_("Add note"), (url + "/add") % args)
retval += make_button(_("Add note"), (url % args))
else:
retval += nbsp("") # to keep tabs same height
return retval