summaryrefslogtreecommitdiff
path: root/addons/document/directory_content.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-07-13 13:30:24 +0300
committerP. Christeas <p_christ@hol.gr>2010-07-13 13:30:24 +0300
commit990cdf4c94b69e41b6ef5eaca5c5ed13d143d18d (patch)
treedf2569b310af243d5f4a6fe8bfee1a3bec31c83e /addons/document/directory_content.py
parent0e8b07f4908aa318870e370aca24c545948267a3 (diff)
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
Diffstat (limited to 'addons/document/directory_content.py')
-rw-r--r--addons/document/directory_content.py4
1 files changed, 3 insertions, 1 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 = {