summaryrefslogtreecommitdiff
path: root/addons/document/document_view.xml
diff options
context:
space:
mode:
authorjas <jas@tinyerp.com>2010-09-29 12:12:28 +0530
committerjas <jas@tinyerp.com>2010-09-29 12:12:28 +0530
commitf8b4b7a869e1bb67cfa41adb5736a15afea71d6d (patch)
tree6f36da4d4a03166800b14b78b13bb097d815772b /addons/document/document_view.xml
parenta3ebbc5e62e8382d9a0331fd49708653485439eb (diff)
parent3589a2fc9b37bd6b5529d39f0ab92a83b84f9076 (diff)
[Merge]: Merge with lp:openobject-addons
bzr revid: jas@tinyerp.com-20100929064228-a5ddx93f8f08ybmu
Diffstat (limited to 'addons/document/document_view.xml')
-rw-r--r--addons/document/document_view.xml18
1 files changed, 8 insertions, 10 deletions
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index f6e21f338e7..69c1c5e2cc3 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -44,7 +44,7 @@
<field name="name" />
<newline/>
<group expand="0" string="Group By..." groups="base.group_extended">
- <filter string="Type" domain="[]" context="{'group_by':'type'}"/>
+ <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
</group>
</search>
</field>
@@ -80,7 +80,7 @@
<separator string="Directory Type" colspan="4"/>
<field name="type"/>
<group colspan="4" col="4" attrs="{'invisible': [('type','!=','ressource')]}">
- <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)"
+ <field name="ressource_type_id" on_change="onchange_content_id(ressource_type_id)"
attrs="{'required': [('type','=','ressource')] }"/>
<field name="resource_find_all" groups="base.group_extended" />
<newline/>
@@ -93,7 +93,7 @@
<field name="ressource_parent_type_id"/>
<field name="ressource_id" select="2" readonly="1"/>
</group>
-
+
</page>
<page string="Generated Files" groups="base.group_extended">
<label colspan="4" string="For each entry here, virtual files will appear in this folder." />
@@ -168,7 +168,7 @@
<field name="storage_id" />
<newline/>
<group expand="0" string="Group By..." groups="base.group_extended">
- <filter string="Type" domain="[]" context="{'group_by':'type'}"/>
+ <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
<filter string="Owner" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
<filter string="Storage" domain="[]" context="{'group_by':'storage_id'}"/>
</group>
@@ -282,10 +282,9 @@
<field name="model">ir.attachment</field>
<field name="type">search</field>
<field name="arch" type="xml">
- <search string="IR Attachment">
- <filter icon="terp-go-month" string="Recent Month"
- help="Attachment modified/created last 30 days"
- domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
+ <search string="Document">
+ <filter icon="terp-go-month" string="Month"
+ domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-%%m-01'))]"
/>
<separator orientation="vertical"/>
<field name="name"/>
@@ -293,7 +292,7 @@
<field name="user_id">
<filter icon="terp-personal"
domain="[('user_id','=', False)]"
- help="Filter on my Attachment" />
+ help="Filter on my documents" />
</field>
<field name="partner_id"/>
<field name="company_id" groups="base.group_multi_company"/>
@@ -332,7 +331,6 @@
<field name="name">Documents</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.attachment</field>
- <field name="name">Document</field>
<field name="view_type">form</field>
<field name="search_view_id" ref="view_attach_filter"/>
<field name="help">Documents give your access to all attached documents; it's a repository of all attached documents (mails, documents attached to a project, etc.)</field>