diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-12-07 15:39:55 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-12-07 15:39:55 +0200 |
| commit | 19cbbf0832061dcd1c0b92caa009282b110ea3e5 (patch) | |
| tree | 41b411a4c1c3aa3886affcc032dafd6aa7c2fc34 /addons/document_webdav/webdav_view.xml | |
| parent | de6720663b11d14ac56955ffb875cbf1b8668118 (diff) | |
doc webdav: DAV properties for files (ir.attachment), used for locking
Similar to the dir.property model, ir.attachments may have arbitrary
properties, too. Note that we hide them from normal users, only list
them in separate form (don't want to bloat the ir.attachment one, even
at the XML level).
bzr revid: p_christ@hol.gr-20101207133955-8n6ipccdnygnuncn
Diffstat (limited to 'addons/document_webdav/webdav_view.xml')
| -rw-r--r-- | addons/document_webdav/webdav_view.xml | 63 |
1 files changed, 62 insertions, 1 deletions
diff --git a/addons/document_webdav/webdav_view.xml b/addons/document_webdav/webdav_view.xml index 2ea0bca5279..4e76346469a 100644 --- a/addons/document_webdav/webdav_view.xml +++ b/addons/document_webdav/webdav_view.xml @@ -37,7 +37,7 @@ <field name="model">document.webdav.dir.property</field> <field name="type">search</field> <field name="arch" type="xml"> - <search string="Search Document storage"> + <search string="Search Document properties"> <field name="name" /> <field name="namespace" /> <newline/> @@ -92,7 +92,68 @@ </page> </field> </record> + + <!-- File properties --> + <record model="ir.ui.view" id="view_file_props_form"> + <field name="name">document.webdav.file.property.form</field> + <field name="model">document.webdav.file.property</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Properties"> + <field name="namespace"/> + <field name="name"/> + <newline /> + <field name="file_id" /> + <field name="do_subst" /> + <newline /> + <field name="value" colspan="4" /> + </form> + </field> + </record> + <record model="ir.ui.view" id="view_file_props_tree"> + <field name="name">document.webdav.file.property.tree</field> + <field name="model">document.webdav.file.property</field> + <field name="type">tree</field> + <field name="arch" type="xml"> + <tree string="Properties" toolbar="1"> + <field name="file_id" /> + <field name="namespace"/> + <field name="name"/> + </tree> + </field> + </record> + + <record id="view_file_props_filter" model="ir.ui.view"> + <field name="name">Search View: File DAV properties</field> + <field name="model">document.webdav.file.property</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Search Document properties"> + <field name="name" /> + <field name="namespace" /> + <newline/> + <group expand="0" string="Group By..." groups="base.group_extended"> + <filter string="Document" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'file_id'}"/> + <filter string="Namespace" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'namespace'}"/> + </group> + </search> + </field> + </record> + + <record model="ir.actions.act_window" id="action_file_props_form"> + <field name="type">ir.actions.act_window</field> + <field name="res_model">document.webdav.file.property</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form</field> + <field name="search_view_id" ref="view_file_props_filter"/> + </record> + <menuitem + name="DAV properties for documents" + action="action_file_props_form" + id="menu_file_props" + groups="base.group_no_one" + parent="document.menu_document_management_configuration"/> </data> </openerp> |
