From 990cdf4c94b69e41b6ef5eaca5c5ed13d143d18d Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Tue, 13 Jul 2010 13:30:24 +0300 Subject: [PATCH] Document: dynamic content file for static dirs. A dynamic content definition *can* be attached to a static directory, in which case the content should be generated based on the dctx dictionary of the dir. bzr revid: p_christ@hol.gr-20100713103024-l3nylpvx4ib6s4ii --- addons/document/directory_content.py | 4 +++- addons/document/document_view.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/document/directory_content.py b/addons/document/directory_content.py index 2d434712f56..cb2da17b8fc 100644 --- a/addons/document/directory_content.py +++ b/addons/document/directory_content.py @@ -58,7 +58,9 @@ class document_directory_content(osv.osv): 'suffix': fields.char('Suffix', size=16), 'report_id': fields.many2one('ir.actions.report.xml', 'Report'), 'extension': fields.selection(_extension_get, 'Document Type', required=True, size=4), - 'include_name': fields.boolean('Include Record Name', help="Check this field if you want that the name of the file start by the record name."), + 'include_name': fields.boolean('Include Record Name', + help="Check this field if you want that the name of the file to contain the record name." \ + "\nIf set, the directory will have to be a resource one."), 'directory_id': fields.many2one('document.directory', 'Directory'), } _defaults = { diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml index c886b6fc9d4..998d1e93188 100644 --- a/addons/document/document_view.xml +++ b/addons/document/document_view.xml @@ -97,7 +97,7 @@