From 6326867adb72dd9ded160769ef09e77b2e482784 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 2 Dec 2013 14:51:09 +0100 Subject: Manage document template * ooo_replace: generate a document by mapping ooo variables with a given dict * DocumentTemplate model: store templates associated with a type of objects * get_values method: generate a dict of value from a model * new form/view to generate document from administrativ acts --- archaeological_files/ishtar_menu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archaeological_files/ishtar_menu.py') diff --git a/archaeological_files/ishtar_menu.py b/archaeological_files/ishtar_menu.py index 6655a381c..87958848a 100644 --- a/archaeological_files/ishtar_menu.py +++ b/archaeological_files/ishtar_menu.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2012 Étienne Loks +# Copyright (C) 2010-2013 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -60,6 +60,10 @@ MENU_SECTIONS = [ _(u"Deletion"), model=AdministrativeAct, access_controls=['delete_file', 'delete_own_file']), + MenuItem('file_administrativeact_document', + _(u"Documents"), + model=AdministrativeAct, + access_controls=['change_file', 'change_own_file']), ],), ]), ), -- cgit v1.2.3