From 2f0e7a5ca8e2c9a055ad1bf42d83e01d4fe4d6d7 Mon Sep 17 00:00:00 2001
From: "RGA(OpenERP)" <>
Date: Wed, 7 Apr 2010 19:42:20 +0530
Subject: [PATCH] Improved search view by removing default values and shift it
on actions
bzr revid: hda@tinyerp.com-20100407141220-enqywrvyecd2iaa3
---
.../report/account_invoice_report_view.xml | 63 ++++++++++---------
addons/crm/crm_claims_menu.xml | 1 +
addons/crm/crm_claims_view.xml | 14 ++---
addons/crm/crm_fund_menu.xml | 1 +
addons/crm/crm_fund_view.xml | 12 ++--
addons/crm/crm_helpdesk_menu.xml | 1 +
addons/crm/crm_helpdesk_view.xml | 9 +--
addons/crm/crm_lead_menu.xml | 2 +
addons/crm/crm_lead_view.xml | 7 +--
addons/crm/crm_meeting_menu.xml | 1 +
addons/crm/crm_meeting_view.xml | 7 +--
addons/crm/crm_opportunity_menu.xml | 1 +
addons/crm/crm_opportunity_view.xml | 8 +--
addons/crm/crm_phonecall_menu.xml | 3 +-
addons/crm/crm_phonecall_view.xml | 9 ++-
addons/crm/crm_report_view.xml | 1 -
addons/crm/crm_view.xml | 6 +-
addons/crm/report/crm_claim_report_view.xml | 1 +
.../report/crm_fundraising_report_view.xml | 1 +
.../crm/report/crm_helpdesk_report_view.xml | 9 ++-
addons/crm/report/crm_lead_report_view.xml | 1 +
.../report/crm_opportunity_report_view.xml | 1 +
.../crm/report/crm_phonecall_report_view.xml | 1 +
addons/crm/report/crm_report_view.xml | 8 +--
addons/hr_evaluation/hr_evaluation_view.xml | 8 +--
.../report/hr_evaluation_report_view.xml | 2 +
addons/hr_expense/hr_expense_view.xml | 8 +--
.../report/hr_expense_report_view.xml | 11 ++--
addons/hr_recruitment/hr_recruitment_menu.xml | 1 +
addons/hr_recruitment/hr_recruitment_view.xml | 10 +--
.../report/hr_recruitment_report_view.xml | 4 +-
addons/mrp/mrp_view.xml | 7 ++-
.../mrp/report/mrp_production_order_view.xml | 5 +-
addons/project/project_view.xml | 15 +++--
addons/project/report/project_report_view.xml | 27 ++++----
addons/project_issue/project_issue_menu.xml | 5 +-
addons/project_issue/project_issue_view.xml | 20 +++---
.../project_long_term_view.xml | 5 +-
.../report/task_report_view.xml | 10 +--
.../purchase/report/purchase_report_view.xml | 17 +++--
addons/resource/resource_view.xml | 5 +-
addons/sale/report/sale_report_view.xml | 25 ++++----
addons/sale/sale_view.xml | 12 ++--
addons/scrum/scrum_view.xml | 16 ++---
.../report/report_stock_picking_view.xml | 11 ++--
addons/stock/report/report_stock_view.xml | 6 +-
addons/stock/stock_view.xml | 23 +++----
addons/survey/survey_view.xml | 4 +-
48 files changed, 224 insertions(+), 201 deletions(-)
diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml
index 47b6ebf3110..2f2c7239454 100644
--- a/addons/account/report/account_invoice_report_view.xml
+++ b/addons/account/report/account_invoice_report_view.xml
@@ -43,36 +43,37 @@
search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
diff --git a/addons/crm/crm_claims_menu.xml b/addons/crm/crm_claims_menu.xml
index 1eac8e007a3..f235c9ae637 100755
--- a/addons/crm/crm_claims_menu.xml
+++ b/addons/crm/crm_claims_menu.xml
@@ -13,6 +13,7 @@
form
tree,calendar,form,graph
+ {"search_default_section_id":section_id,"search_default_current":1,"search_default_my_claims":1}
diff --git a/addons/crm/crm_claims_view.xml b/addons/crm/crm_claims_view.xml
index f791a1b86cc..08c0bd9b528 100755
--- a/addons/crm/crm_claims_view.xml
+++ b/addons/crm/crm_claims_view.xml
@@ -161,7 +161,7 @@
-
+
@@ -245,9 +245,9 @@
search
-
-
+
+ widget="selection">
diff --git a/addons/crm/crm_fund_menu.xml b/addons/crm/crm_fund_menu.xml
index babb10f291c..c0994aee5cd 100644
--- a/addons/crm/crm_fund_menu.xml
+++ b/addons/crm/crm_fund_menu.xml
@@ -12,6 +12,7 @@
crm.fundraising
tree,form,graph
+ {"search_default_my_funds":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_fund_view.xml b/addons/crm/crm_fund_view.xml
index ec4f0d49236..536da9b7c77 100644
--- a/addons/crm/crm_fund_view.xml
+++ b/addons/crm/crm_fund_view.xml
@@ -169,7 +169,7 @@
-
+
@@ -181,8 +181,8 @@
-
+
diff --git a/addons/crm/crm_helpdesk_menu.xml b/addons/crm/crm_helpdesk_menu.xml
index bd3f0889bd1..b1a7dfcc428 100644
--- a/addons/crm/crm_helpdesk_menu.xml
+++ b/addons/crm/crm_helpdesk_menu.xml
@@ -11,6 +11,7 @@
crm.helpdesk
tree,calendar,form
+ {"search_default_my_hd_request":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_helpdesk_view.xml b/addons/crm/crm_helpdesk_view.xml
index 6bb356bacfb..803b306c1bb 100644
--- a/addons/crm/crm_helpdesk_view.xml
+++ b/addons/crm/crm_helpdesk_view.xml
@@ -223,13 +223,10 @@
-
+
-
+
diff --git a/addons/crm/crm_lead_menu.xml b/addons/crm/crm_lead_menu.xml
index c78d25b6738..8e34bca3118 100644
--- a/addons/crm/crm_lead_menu.xml
+++ b/addons/crm/crm_lead_menu.xml
@@ -7,6 +7,8 @@
crm.lead
tree,form
+ {"search_default_current":1,"search_default_my_lead":1,"search_default_section_id":section_id}
+ {"search_default_current":1,"search_default_my_lead":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index 8ecebf27ec8..8fcf34238f2 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -262,9 +262,8 @@
search
-
-
crm.meeting
calendar,tree,form,gantt
+ {"search_default_current":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml
index 6d6402b9fdb..9d4888329fb 100755
--- a/addons/crm/crm_meeting_view.xml
+++ b/addons/crm/crm_meeting_view.xml
@@ -262,14 +262,13 @@
-
+
crm.opportunity
tree,form,graph
+ {"search_default_my_oprtnit":1,"search_default_new_oprtnit":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml
index f36f11dfe74..e4837e933c9 100644
--- a/addons/crm/crm_opportunity_view.xml
+++ b/addons/crm/crm_opportunity_view.xml
@@ -263,7 +263,6 @@
-
+ help="My Opportunities" />
form
tree,calendar
+ {"set_editable":True,"default_state":'open',"search_default_my_calls":1,"search_default_state":1,"search_default_section_id":section_id}
@@ -54,7 +55,7 @@
tree,calendar
- {'set_editable':True,'default_state':'open'}
+ {"default_state":'open',"search_default_my_calls":1,"search_default_state":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index ec773cf78ef..064d3569d03 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -176,16 +176,15 @@
-
+
+ select="1" widget="selection" string="Section">
diff --git a/addons/crm/crm_report_view.xml b/addons/crm/crm_report_view.xml
index 7b8b08dd7c9..4746829da12 100644
--- a/addons/crm/crm_report_view.xml
+++ b/addons/crm/crm_report_view.xml
@@ -78,7 +78,6 @@
help="Cases by Section and Type for this month" />
diff --git a/addons/crm/crm_view.xml b/addons/crm/crm_view.xml
index b1e5e0d145c..babacff497d 100644
--- a/addons/crm/crm_view.xml
+++ b/addons/crm/crm_view.xml
@@ -418,7 +418,7 @@
+ help="Cases Related to Current User" />
+ select="1" widget="selection" string="Section"/>
@@ -511,7 +510,6 @@
diff --git a/addons/crm/report/crm_claim_report_view.xml b/addons/crm/report/crm_claim_report_view.xml
index a00df8b03a0..465fab740a6 100644
--- a/addons/crm/report/crm_claim_report_view.xml
+++ b/addons/crm/report/crm_claim_report_view.xml
@@ -83,6 +83,7 @@
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_fundraising_report_view.xml b/addons/crm/report/crm_fundraising_report_view.xml
index 1eeb5871e13..fbc56e6202e 100644
--- a/addons/crm/report/crm_fundraising_report_view.xml
+++ b/addons/crm/report/crm_fundraising_report_view.xml
@@ -80,6 +80,7 @@
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_helpdesk_report_view.xml b/addons/crm/report/crm_helpdesk_report_view.xml
index dc1306e3623..ba4e3be7ed2 100644
--- a/addons/crm/report/crm_helpdesk_report_view.xml
+++ b/addons/crm/report/crm_helpdesk_report_view.xml
@@ -68,11 +68,11 @@
+ name="this_year" />
+ name="this_month" />
@@ -138,8 +137,7 @@
+ domain="[]" context="{'group_by':'user_id'}" />
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml
index 06cb2b01aa8..58d69699404 100644
--- a/addons/crm/report/crm_lead_report_view.xml
+++ b/addons/crm/report/crm_lead_report_view.xml
@@ -79,6 +79,7 @@
crm.lead.report
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_opportunity_report_view.xml b/addons/crm/report/crm_opportunity_report_view.xml
index 8763510eab1..3ee8498fb3a 100644
--- a/addons/crm/report/crm_opportunity_report_view.xml
+++ b/addons/crm/report/crm_opportunity_report_view.xml
@@ -88,6 +88,7 @@
crm.opportunity.report
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_phonecall_report_view.xml b/addons/crm/report/crm_phonecall_report_view.xml
index a41880a7ff7..a78d94977f8 100644
--- a/addons/crm/report/crm_phonecall_report_view.xml
+++ b/addons/crm/report/crm_phonecall_report_view.xml
@@ -77,6 +77,7 @@
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
diff --git a/addons/crm/report/crm_report_view.xml b/addons/crm/report/crm_report_view.xml
index e5729553fa2..3cd8b518b5d 100644
--- a/addons/crm/report/crm_report_view.xml
+++ b/addons/crm/report/crm_report_view.xml
@@ -65,11 +65,11 @@
+ name="this_year" />
+ name="this_month" />
@@ -108,7 +107,7 @@
+ name="by_user" />
crm.case.report
form
tree,graph
+ {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1}
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index 4f16eb68575..fa50f944fa1 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -209,7 +209,7 @@
search
-
+
@@ -226,9 +226,9 @@
-
-
-
+
+
+
diff --git a/addons/hr_evaluation/report/hr_evaluation_report_view.xml b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
index fe24b7c373f..2048c8337db 100644
--- a/addons/hr_evaluation/report/hr_evaluation_report_view.xml
+++ b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
@@ -25,6 +25,7 @@
search
+
+
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index 95d6ce77ae3..855f40633d0 100644
--- a/addons/hr_expense/hr_expense_view.xml
+++ b/addons/hr_expense/hr_expense_view.xml
@@ -127,7 +127,7 @@
search
-
+
-
@@ -173,6 +172,7 @@
Expenses
hr.expense.expense
form
+ {"search_default_my_expns":1}
diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml
index 9e30e6688f2..2f9a0afb29c 100644
--- a/addons/hr_expense/report/hr_expense_report_view.xml
+++ b/addons/hr_expense/report/hr_expense_report_view.xml
@@ -43,6 +43,7 @@
search
+
-
@@ -67,11 +67,11 @@
domain="[('user_id','=',uid)]"/>
-
+
-
+
-
+
@@ -90,6 +90,7 @@
hr.expense.report
form
tree,graph
+ {"search_default_expenses":1,"search_default_by_user":1}
diff --git a/addons/hr_recruitment/hr_recruitment_menu.xml b/addons/hr_recruitment/hr_recruitment_menu.xml
index ba3278b3c66..bbf32cf0501 100644
--- a/addons/hr_recruitment/hr_recruitment_menu.xml
+++ b/addons/hr_recruitment/hr_recruitment_menu.xml
@@ -9,6 +9,7 @@
hr.applicant
tree,form,graph
+ {"search_default_current":1,"search_default_my_recrui":1}
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index 83b71c05432..3416ba08f24 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -199,10 +199,10 @@
search
-
+
+
-
+
@@ -229,8 +230,9 @@
domain="[('department_id','=',context.get('department_id',False))]"
help="My Department"/>
+
-
+
diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
index 30f1ec3d8ed..286499e0ae8 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -56,7 +56,6 @@
@@ -80,7 +79,7 @@
-
+
@@ -101,6 +100,7 @@
hr.recruitment.report
form
tree,graph
+ {"search_default_user_id":1,"search_default_by_user":1}
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index 3614ebf67bb..c215ff13fb0 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -618,8 +618,7 @@
-
form
tree,form,calendar,graph,gantt
+ {"search_default_current":1}
@@ -852,7 +852,7 @@
-
+
mrp.procurement
form
+ {"search_default_current":1}