summaryrefslogtreecommitdiff
path: root/addons/document/document_view.xml
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-06-27 23:18:26 +0300
committerP. Christeas <p_christ@hol.gr>2010-06-27 23:18:26 +0300
commit07d395df15c22037d64f0d7dceeec4d1328ce999 (patch)
tree0df0fe5d17a07ab2d79a8a4f1d962ec6e42ca43e /addons/document/document_view.xml
parent823dc6d50d2a158c0c7428aa09e18a0a0d781a45 (diff)
Document: cleanup the view (and help) of directory.
bzr revid: p_christ@hol.gr-20100627201826-1873sa0et2q8vx62
Diffstat (limited to 'addons/document/document_view.xml')
-rw-r--r--addons/document/document_view.xml29
1 files changed, 20 insertions, 9 deletions
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index 714c6d2c107..36e89074d94 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -75,23 +75,31 @@
<field name="arch" type="xml">
<form string="Directories">
<field name="name" select="1" colspan="4"/>
- <field name="user_id"/>
<field name="parent_id"/>
<field name="storage_id" />
+ <field name="user_id"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<notebook colspan="4">
<page string="Definition">
<separator string="Directory Type" colspan="4"/>
<field name="type"/>
- <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
- <newline/>
- <field name="domain" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
- <field name="ressource_tree"/>
- <field name="resource_field" domain="[('model_id','=',ressource_type_id), ('ttype', 'in', ('char', 'selection', 'date', 'datetime'))]"/>
- <field name="ressource_id" select="2" readonly="1"/>
- <field name="ressource_parent_type_id"/>
+ <group colspan="4" col="4" attrs="{'invisible': [('type','!=','ressource')]}">
+ <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)"
+ attrs="{'required': [('type','=','ressource')] }"/>
+ <newline/>
+ <field name="resource_field" domain="[('model_id','=',ressource_type_id), ('ttype', 'in', ('char', 'selection', 'date', 'datetime'))]"/>
+ <field name="ressource_tree"/>
+ </group>
+ <group colspan="4" col="4" attrs="{'invisible': [('type','!=','at_record')]}">
+ <field name="ressource_parent_type_id"/>
+ <field name="ressource_id" select="2" readonly="1"/>
+ </group>
+
+ <group colspan="4" col="4">
+ <field name="domain" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
+ </group>
</page>
- <page string="Generated Files">
+ <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)]}">
<form string="Contents">
@@ -113,6 +121,7 @@
</field>
</page>
<page string="Dynamic context" groups="base.group_extended">
+ <label colspan="4" string="Define words in the context, for all child directories and files" />
<field name="dctx_ids" nolabel="1" colspan="4">
<tree string="Fields" editable="bottom">
<field name="field"/>
@@ -125,6 +134,8 @@
</field>
</page>
<page string="Security">
+ <label colspan="4" string="Only members of these groups will have access to this directory and its files." />
+ <label colspan="4" string="These groups, however, do NOT apply to children directories, which must define their own ones." />
<field name="group_ids" colspan="4" nolabel="1"/>
</page>
</notebook>