diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2012-06-22 12:29:59 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2012-06-22 12:29:59 +0200 |
| commit | c9ef276770587e6ce8c282fad751ff5565a90004 (patch) | |
| tree | 2e568b7dec83456911457dede49195e0aae6ddc3 /addons/document/document_view.xml | |
| parent | 7c9436f69c5d82d0b7b1c9847b9209bcbf800d77 (diff) | |
[REF] search views: removed filter_domain if only one element was inside + made some small usability changes
bzr revid: qdp-launchpad@openerp.com-20120622102959-fhc1oe2w8in8y6v2
Diffstat (limited to 'addons/document/document_view.xml')
| -rw-r--r-- | addons/document/document_view.xml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml index 221d7d49fcf..da4b6c2284d 100644 --- a/addons/document/document_view.xml +++ b/addons/document/document_view.xml @@ -40,7 +40,7 @@ <field name="type">search</field> <field name="arch" type="xml"> <search string="Search Document Storage"> - <field name="name" filter_domain="[('name','ilike',self)]" string="Document Storage"/> + <field name="name" string="Document Storage"/> <newline/> <group expand="0" string="Group By..."> <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/> @@ -171,7 +171,7 @@ <field name="type">search</field> <field name="arch" type="xml"> <search string="Search Document Directory"> - <field name="name" filter_domain="[('name','ilike',self)]" string="Document Directory"/> + <field name="name" string="Document Directory"/> <separator orientation="vertical"/> <filter string="Static" domain="[('type','=','directory')]"/> <filter string="Resources" icon="terp-personal" domain="[('type','=','ressource')]"/> @@ -292,11 +292,12 @@ <field name="type">search</field> <field name="inherit_id" ref="base.view_attachment_search"/> <field name="arch" type="xml"> - <xpath expr="//filter[@string='My Document(s)']" position="replace"> - <filter string="My Document(s)" + <xpath expr="//filter[@name='my_documents_filter']" position="replace"> + <filter name="my_documents_filter" + string="My Document(s)" icon="terp-personal" domain="[('user_id','=',uid)]" - help="Filter on my documents" /> + help="Filter on my documents"/> </xpath> <xpath expr="//field[@name='create_uid']" position="replace"> <field name="user_id"/> |
