summaryrefslogtreecommitdiff
path: root/addons/document
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
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')
-rw-r--r--addons/document/directory_content.py4
-rw-r--r--addons/document/document_view.xml2
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 @@
</page>
<page string="Generated Files" groups="base.group_extended">
<label colspan="4" string="For each entry here, virtual files will appear in this folder." />
- <field name="content_ids" nolabel="1" colspan="4" attrs="{'readonly': [('ressource_type_id','=',False)]}">
+ <field name="content_ids" nolabel="1" colspan="4" >
<form string="Contents">
<field name="name"/>
<field name="sequence"/>