From 70e4f146277661d170206e827990d54e93fecc52 Mon Sep 17 00:00:00 2001
From: "RGA(OpenERP)" <>
Date: Mon, 12 Apr 2010 14:21:04 +0530
Subject: [PATCH 1/2] Improved search views for default attributes
bzr revid: hda@tinyerp.com-20100412085104-4ylrt2dgpjkg4d5e
---
addons/crm/crm_claims_menu.xml | 2 +-
addons/crm/crm_claims_view.xml | 4 ++--
addons/crm/crm_fund_menu.xml | 2 +-
addons/crm/crm_fund_view.xml | 2 +-
addons/crm/crm_helpdesk_menu.xml | 2 +-
addons/crm/crm_helpdesk_view.xml | 4 ++--
addons/crm/crm_lead_menu.xml | 3 +--
addons/crm/crm_lead_view.xml | 8 +++----
addons/crm/crm_meeting_menu.xml | 2 +-
addons/crm/crm_meeting_view.xml | 6 ++---
addons/crm/crm_opportunity_menu.xml | 2 +-
addons/crm/crm_opportunity_view.xml | 2 +-
addons/crm/crm_phonecall_menu.xml | 4 ++--
addons/crm/crm_phonecall_view.xml | 8 ++++---
addons/crm/report/crm_claim_report_view.xml | 2 +-
.../report/crm_fundraising_report_view.xml | 2 +-
addons/crm/report/crm_lead_report_view.xml | 2 +-
.../report/crm_opportunity_report_view.xml | 2 +-
.../crm/report/crm_phonecall_report_view.xml | 2 +-
addons/crm/report/crm_report_view.xml | 11 ++++-----
addons/hr_evaluation/hr_evaluation_view.xml | 6 ++---
addons/hr_expense/hr_expense_view.xml | 4 ++--
.../report/hr_expense_report_view.xml | 7 +++---
addons/hr_recruitment/hr_recruitment_menu.xml | 2 +-
addons/hr_recruitment/hr_recruitment_view.xml | 4 ++--
.../report/hr_recruitment_report_view.xml | 11 +++++----
addons/mrp/mrp_view.xml | 24 +++++++++----------
.../mrp/report/mrp_production_order_view.xml | 6 ++---
addons/project/project_view.xml | 16 ++++++-------
addons/project/report/project_report_view.xml | 6 ++---
addons/project_issue/project_issue_menu.xml | 2 +-
addons/project_issue/project_issue_view.xml | 8 +++----
.../project_long_term_view.xml | 6 ++---
.../report/task_report_view.xml | 4 ++--
.../purchase/report/purchase_report_view.xml | 10 ++++----
addons/resource/resource_view.xml | 4 ++--
addons/sale/report/sale_report_view.xml | 10 ++++----
addons/sale/sale_view.xml | 10 ++++----
addons/scrum/scrum_view.xml | 18 +++++++-------
.../report/report_stock_picking_view.xml | 6 ++---
addons/stock/report/report_stock_view.xml | 4 ++--
addons/stock/stock_view.xml | 22 ++++++++---------
42 files changed, 129 insertions(+), 133 deletions(-)
diff --git a/addons/crm/crm_claims_menu.xml b/addons/crm/crm_claims_menu.xml
index f235c9ae637..d2d78d78b54 100644
--- a/addons/crm/crm_claims_menu.xml
+++ b/addons/crm/crm_claims_menu.xml
@@ -13,7 +13,7 @@
form
tree,calendar,form,graph
- {"search_default_section_id":section_id,"search_default_current":1,"search_default_my_claims":1}
+ {"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 c7409006d78..326da6c8973 100644
--- a/addons/crm/crm_claims_view.xml
+++ b/addons/crm/crm_claims_view.xml
@@ -245,7 +245,7 @@
search
-
@@ -263,7 +263,7 @@
-
crm.fundraising
tree,form,graph
- {"search_default_my_funds":1,"search_default_section_id":section_id}
+ {"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 8d315c14a6d..c72fd810603 100644
--- a/addons/crm/crm_fund_view.xml
+++ b/addons/crm/crm_fund_view.xml
@@ -252,7 +252,7 @@
diff --git a/addons/crm/crm_helpdesk_menu.xml b/addons/crm/crm_helpdesk_menu.xml
index b1a7dfcc428..21ff93c91ec 100644
--- a/addons/crm/crm_helpdesk_menu.xml
+++ b/addons/crm/crm_helpdesk_menu.xml
@@ -11,7 +11,7 @@
crm.helpdesk
tree,calendar,form
- {"search_default_my_hd_request":1,"search_default_section_id":section_id}
+ {"search_default_My 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 bea0c3a894c..fc731ae30e7 100644
--- a/addons/crm/crm_helpdesk_view.xml
+++ b/addons/crm/crm_helpdesk_view.xml
@@ -104,7 +104,7 @@
-
+
@@ -223,7 +223,7 @@
-
diff --git a/addons/crm/crm_lead_menu.xml b/addons/crm/crm_lead_menu.xml
index 8e34bca3118..eb8c09008fc 100644
--- a/addons/crm/crm_lead_menu.xml
+++ b/addons/crm/crm_lead_menu.xml
@@ -7,8 +7,7 @@
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}
+ {"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 9dad22dba81..d93e5f94562 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -45,8 +45,8 @@
name="convert_opportunity"
string="Convert"
help="Convert into Opportunity"
- icon="gtk-index"
- type="object"
+ icon="gtk-index"
+ type="object"
attrs="{'invisible':[('opportunity_id','!=',False)]}"/>
search
-
crm.meeting
calendar,tree,form,gantt
- {"search_default_current":1,"search_default_section_id":section_id}
+ {"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 b01beb55342..b350812c0f9 100644
--- a/addons/crm/crm_meeting_view.xml
+++ b/addons/crm/crm_meeting_view.xml
@@ -259,9 +259,9 @@
-
+
diff --git a/addons/crm/crm_opportunity_menu.xml b/addons/crm/crm_opportunity_menu.xml
index ba01ca72be4..c7fba068c11 100644
--- a/addons/crm/crm_opportunity_menu.xml
+++ b/addons/crm/crm_opportunity_menu.xml
@@ -27,7 +27,7 @@
crm.opportunity
tree,form,graph
- {"search_default_my_oprtnit":1,"search_default_new_oprtnit":1,"search_default_section_id":section_id}
+ {"search_default_My Oprtnit":1,"search_default_Current":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml
index 92b09919791..e0e53f4cd8c 100644
--- a/addons/crm/crm_opportunity_view.xml
+++ b/addons/crm/crm_opportunity_view.xml
@@ -281,7 +281,7 @@
-
form
tree,calendar
- {"set_editable":True,"default_state":'open',"search_default_my_calls":1,"search_default_state":1,"search_default_section_id":section_id}
+ {"set_editable":True,"default_state":'open',"search_default_my_calls":1,"search_default_section_id":section_id}
@@ -55,7 +55,7 @@
tree,calendar
- {"default_state":'open',"search_default_my_calls":1,"search_default_state":1,"search_default_section_id":section_id}
+ {"default_state":'open',"search_default_My Calls":1,"search_default_section_id":section_id}
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index 064d3569d03..3fefc7ed249 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -161,6 +161,7 @@
search
+
-
+
@@ -189,6 +190,7 @@
domain="[('section_id','=',context.get('section_id',False))]"
help="My section" />
+
form
tree,graph
- {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}
+ {"search_default_section_id":section_id,"search_default_This Year":1,"search_default_This Month":1,"search_default_User":1}
diff --git a/addons/crm/report/crm_fundraising_report_view.xml b/addons/crm/report/crm_fundraising_report_view.xml
index fbc56e6202e..38068a7b16c 100644
--- a/addons/crm/report/crm_fundraising_report_view.xml
+++ b/addons/crm/report/crm_fundraising_report_view.xml
@@ -80,7 +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}
+ {"search_default_section_id":section_id,"search_default_This Year":1,"search_default_This Month":1,"search_default_User":1}
diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml
index 58d69699404..9ce910329bf 100644
--- a/addons/crm/report/crm_lead_report_view.xml
+++ b/addons/crm/report/crm_lead_report_view.xml
@@ -79,7 +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}
+ {"search_default_section_id":section_id,"search_default_This Year":1,"search_default_This Month":1,"search_default_User":1}
diff --git a/addons/crm/report/crm_opportunity_report_view.xml b/addons/crm/report/crm_opportunity_report_view.xml
index 3ee8498fb3a..b19115f6739 100644
--- a/addons/crm/report/crm_opportunity_report_view.xml
+++ b/addons/crm/report/crm_opportunity_report_view.xml
@@ -88,7 +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}
+ {"search_default_section_id":section_id,"search_default_This Year":1,"search_default_This Month":1,"search_default_User":1}
diff --git a/addons/crm/report/crm_phonecall_report_view.xml b/addons/crm/report/crm_phonecall_report_view.xml
index a78d94977f8..a4fc0f0097f 100644
--- a/addons/crm/report/crm_phonecall_report_view.xml
+++ b/addons/crm/report/crm_phonecall_report_view.xml
@@ -77,7 +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}
+ {"search_default_section_id":section_id,"search_default_This Year":1,"search_default_This Month":1,"search_default_User":1}
diff --git a/addons/crm/report/crm_report_view.xml b/addons/crm/report/crm_report_view.xml
index 3cd8b518b5d..a0f03a24210 100644
--- a/addons/crm/report/crm_report_view.xml
+++ b/addons/crm/report/crm_report_view.xml
@@ -64,12 +64,10 @@
+ domain="[('name','=',time.localtime()[0])]" />
+ domain="[('month','=',time.strftime('%%m'))]" />
+ domain="[]" context="{'group_by':'user_id'}" />
crm.case.report
form
tree,graph
- {"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1}
+ {"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 fcd4f9d4bf1..8af9a48b50c 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -311,9 +311,9 @@
-
+
-
+
@@ -329,7 +329,7 @@
form
tree,form
[('is_evaluation' ,'=', True)]
- {"search_default_todo":1,"search_default_my":1}
+ {"search_default_To Do":1,"search_default_My":1}
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index 855f40633d0..7b18fa14996 100644
--- a/addons/hr_expense/hr_expense_view.xml
+++ b/addons/hr_expense/hr_expense_view.xml
@@ -148,7 +148,7 @@
Expenses
hr.expense.expense
form
- {"search_default_my_expns":1}
+ {"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 2f9a0afb29c..7a3c9b25d18 100644
--- a/addons/hr_expense/report/hr_expense_report_view.xml
+++ b/addons/hr_expense/report/hr_expense_report_view.xml
@@ -56,8 +56,7 @@
-
@@ -71,7 +70,7 @@
-
+
@@ -90,7 +89,7 @@
hr.expense.report
form
tree,graph
- {"search_default_expenses":1,"search_default_by_user":1}
+ {"search_default_Expenses":1,"search_default_User":1}
diff --git a/addons/hr_recruitment/hr_recruitment_menu.xml b/addons/hr_recruitment/hr_recruitment_menu.xml
index bbf32cf0501..88011aa817c 100644
--- a/addons/hr_recruitment/hr_recruitment_menu.xml
+++ b/addons/hr_recruitment/hr_recruitment_menu.xml
@@ -9,7 +9,7 @@
hr.applicant
tree,form,graph
- {"search_default_current":1,"search_default_my_recrui":1}
+ {"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 c31b58f74be..96f8718bf9a 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -202,7 +202,7 @@
-
@@ -224,7 +224,7 @@
-
+
diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
index 286499e0ae8..2b8c451949c 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -39,6 +39,7 @@
search
+
+
-
+
@@ -76,10 +78,9 @@
string="Excellent"
domain="[('priority','=','1')]"/>
-
-
-
+
+
@@ -100,7 +101,7 @@
hr.recruitment.report
form
tree,graph
- {"search_default_user_id":1,"search_default_by_user":1}
+ {"search_default_User":1}
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index 83ae9ea4e55..77b4d65a4b9 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -441,7 +441,7 @@
-
+
mrp.production.form
@@ -493,7 +493,7 @@
+ states="draft,waiting,confirmed,assigned" />
@@ -502,7 +502,7 @@
-
+
@@ -516,8 +516,8 @@
name="%(stock.move_scrap)d"
string="Scrap Products" type="action"
icon="gtk-convert"
- states="done,cancel" />
-
+ states="done,cancel" />
+
@@ -525,13 +525,13 @@
-
+
-
+
@@ -548,7 +548,7 @@
+ states="draft,waiting,confirmed,assigned" />
@@ -618,7 +618,7 @@
-
form
tree,form,calendar,graph,gantt
- {"search_default_current":1}
+ {"search_default_Current":1}
@@ -852,7 +852,7 @@
-
+
mrp.procurement
form
- {"search_default_current":1}
+ {"search_default_Current":1}