Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
1eb5f7cc
Commit
1eb5f7cc
authored
14 years ago
by
Jamin Shah
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] document: imporved search view for Document
bzr revid: jas@tinyerp.com-20101014054000-mr0h707ba2odbt5t
parent
d5052f52
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/document/document_view.xml
+47
-18
47 additions, 18 deletions
addons/document/document_view.xml
with
47 additions
and
18 deletions
addons/document/document_view.xml
+
47
−
18
View file @
1eb5f7cc
...
...
@@ -278,37 +278,66 @@
</field>
</record>
<record
id=
"view_attach_filter"
model=
"ir.ui.view"
>
<record
id=
"view_attach_filter
_inherit
"
model=
"ir.ui.view"
>
<field
name=
"name"
>
IR Attachment
</field>
<field
name=
"model"
>
ir.attachment
</field>
<field
name=
"type"
>
search
</field>
<field
name=
"inherit_id"
ref=
"base.view_attachment_search"
/>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Document"
>
<filter
icon=
"terp-go-month"
string=
"Month"
domain=
"[('create_date','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',time.strftime('%%Y-%%m-01'))]"
/>
<separator
orientation=
"vertical"
/>
<field
name=
"name"
/>
<field
name=
"parent_id"
/>
<field
name=
"user_id"
>
<filter
string=
"Binary"
position=
"after"
>
<filter
icon=
"terp-go-month"
string=
"Month"
domain=
"[('create_date','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',time.strftime('%%Y-%%m-01'))]"
/>
</filter>
</field>
</record>
<record
id=
"view_attach_filter_inherit0"
model=
"ir.ui.view"
>
<field
name=
"name"
>
IR Attachment0
</field>
<field
name=
"model"
>
ir.attachment
</field>
<field
name=
"type"
>
search
</field>
<field
name=
"inherit_id"
ref=
"base.view_attachment_search"
/>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"type"
position=
"replace"
>
<field
name=
"parent_id"
/>
</field>
<field
name=
"datas_fname"
position=
"replace"
>
<field
name=
"user_id"
>
<filter
icon=
"terp-personal"
domain=
"[('user_id','=',uid)]"
help=
"Filter on my documents"
/>
</field>
<field
name=
"partner_id"
/>
<field
name=
"company_id"
groups=
"base.group_multi_company"
/>
<newline/>
<group
expand=
"0"
string=
"Group By..."
>
</field>
</field>
</record>
<record
id=
"view_attach_filter_inherit1"
model=
"ir.ui.view"
>
<field
name=
"name"
>
IR Attachment1
</field>
<field
name=
"model"
>
ir.attachment
</field>
<field
name=
"type"
>
search
</field>
<field
name=
"inherit_id"
ref=
"base.view_attachment_search"
/>
<field
name=
"arch"
type=
"xml"
>
<filter
string=
"Creator"
position=
"replace"
>
<filter
string=
"Owner"
icon=
"terp-personal"
domain=
"[]"
context=
"{'group_by':'user_id'}"
/>
</filter>
</field>
</record>
<record
id=
"view_attach_filter_inherit2"
model=
"ir.ui.view"
>
<field
name=
"name"
>
IR Attachment2
</field>
<field
name=
"model"
>
ir.attachment
</field>
<field
name=
"type"
>
search
</field>
<field
name=
"inherit_id"
ref=
"base.view_attachment_search"
/>
<field
name=
"arch"
type=
"xml"
>
<filter
string=
"Owner"
position=
"after"
>
<filter
string=
"Partner"
icon=
"terp-personal"
domain=
"[]"
context=
"{'group_by':'partner_id'}"
groups=
"base.group_extended"
/>
<filter
string=
"Directory"
icon=
"terp-folder-green"
domain=
"[]"
context=
"{'group_by':'parent_id'}"
/>
<filter
string=
"Type"
icon=
"terp-stock_symbol-selection"
domain=
"[]"
context=
"{'group_by':'type'}"
groups=
"base.group_extended"
/>
<filter
string=
"Owner"
icon=
"terp-personal"
domain=
"[]"
context=
"{'group_by':'user_id'}"
/>
<filter
string=
"Company"
icon=
"terp-personal"
domain=
"[]"
context=
"{'group_by':'company_id'}"
groups=
"base.group_multi_company"
/>
</group>
</search>
</field>
</filter>
</field>
</record>
<record
model=
"ir.ui.view"
id=
"view_document_file_tree"
>
<field
name=
"name"
>
ir.attachment
</field>
<field
name=
"model"
>
ir.attachment
</field>
...
...
@@ -319,6 +348,7 @@
<field
name=
"name"
/>
<field
name=
"parent_id"
/>
<field
name=
"user_id"
/>
<field
name=
"company_id"
/>
<field
name=
"create_date"
/>
<field
name=
"write_date"
/>
<field
name=
"partner_id"
groups=
"base.group_extended"
/>
...
...
@@ -333,7 +363,6 @@
<field
name=
"type"
>
ir.actions.act_window
</field>
<field
name=
"res_model"
>
ir.attachment
</field>
<field
name=
"view_type"
>
form
</field>
<field
name=
"search_view_id"
ref=
"view_attach_filter"
/>
<field
name=
"help"
>
The Documents repository gives you access to all attachments, such as mails, project documents, invoices etc.
</field>
</record>
<menuitem
name=
"Documents"
id=
"menu_document_doc"
parent=
"knowledge.menu_document"
sequence=
"0"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment