From 39cc5535087f95ae3c584a3f05dc25d2e5a8b0e0 Mon Sep 17 00:00:00 2001
From: "RGA(OpenERP)" <>
Date: Thu, 15 Apr 2010 18:15:21 +0530
Subject: [PATCH] Revert changes to use name attribute to set dafault on
fieltrs
bzr revid: hda@tinyerp.com-20100415124521-aq7jqrdf7dc4kdyb
---
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/product/report/product_label.xsl | 1 +
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 | 8 +++----
addons/scrum/scrum_view.xml | 18 +++++++-------
.../report/report_stock_picking_view.xml | 6 ++---
addons/stock/report/report_stock_view.xml | 6 -----
addons/stock/stock_view.xml | 22 ++++++++---------
43 files changed, 131 insertions(+), 132 deletions(-)
diff --git a/addons/crm/crm_claims_menu.xml b/addons/crm/crm_claims_menu.xml
index d2d78d78b54..f235c9ae637 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 326da6c8973..c7409006d78 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 c72fd810603..8d315c14a6d 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 21ff93c91ec..b1a7dfcc428 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 Request":1,"search_default_section_id":section_id}
+ {"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 fc731ae30e7..bea0c3a894c 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 eb8c09008fc..8e34bca3118 100644
--- a/addons/crm/crm_lead_menu.xml
+++ b/addons/crm/crm_lead_menu.xml
@@ -7,7 +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}
+ {"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 d93e5f94562..9dad22dba81 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 b350812c0f9..b01beb55342 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 c7fba068c11..ba01ca72be4 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_Current":1,"search_default_section_id":section_id}
+ {"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 e0e53f4cd8c..92b09919791 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_section_id":section_id}
+ {"set_editable":True,"default_state":'open',"search_default_my_calls":1,"search_default_state":1,"search_default_section_id":section_id}
@@ -55,7 +55,7 @@
tree,calendar
- {"default_state":'open',"search_default_My Calls":1,"search_default_section_id":section_id}
+ {"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 3fefc7ed249..064d3569d03 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -161,7 +161,6 @@
search
-
-
+
@@ -190,7 +189,6 @@
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_User":1}
+ {"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 38068a7b16c..fbc56e6202e 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_User":1}
+ {"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 9ce910329bf..58d69699404 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_User":1}
+ {"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 b19115f6739..3ee8498fb3a 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_User":1}
+ {"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 a4fc0f0097f..a78d94977f8 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_User":1}
+ {"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 a0f03a24210..3cd8b518b5d 100644
--- a/addons/crm/report/crm_report_view.xml
+++ b/addons/crm/report/crm_report_view.xml
@@ -64,10 +64,12 @@
+ domain="[('name','=',time.localtime()[0])]"
+ name="this_year" />
+ domain="[('month','=',time.strftime('%%m'))]"
+ name="this_month" />
+ domain="[]" context="{'group_by':'user_id'}"
+ 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}
+ {"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 8af9a48b50c..fcd4f9d4bf1 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_To Do":1,"search_default_My":1}
+ {"search_default_todo":1,"search_default_my":1}
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index 7b18fa14996..855f40633d0 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 7a3c9b25d18..2f9a0afb29c 100644
--- a/addons/hr_expense/report/hr_expense_report_view.xml
+++ b/addons/hr_expense/report/hr_expense_report_view.xml
@@ -56,7 +56,8 @@
-
@@ -70,7 +71,7 @@
-
+
@@ -89,7 +90,7 @@
hr.expense.report
form
tree,graph
- {"search_default_Expenses":1,"search_default_User":1}
+ {"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 88011aa817c..bbf32cf0501 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 96f8718bf9a..c31b58f74be 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 2b8c451949c..286499e0ae8 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -39,7 +39,6 @@
search
-
-
-
+
@@ -78,9 +76,10 @@
string="Excellent"
domain="[('priority','=','1')]"/>
+
-
-
+
+
@@ -101,7 +100,7 @@
hr.recruitment.report
form
tree,graph
- {"search_default_User":1}
+ {"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 10479d82044..cf3a2ac584d 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}