diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 273f5354308..ffd7b874510 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -462,7 +462,7 @@
-
+
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 89396eda8c1..8afa19a63b0 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -61,7 +61,7 @@
-
+
@@ -232,7 +232,7 @@
-
+
@@ -381,7 +381,7 @@
-
+
@@ -507,7 +507,7 @@
-
+
@@ -544,7 +544,7 @@
-
+
@@ -979,7 +979,7 @@
-
+
@@ -1258,7 +1258,7 @@
-
+
@@ -1491,7 +1491,7 @@
-
+
@@ -1648,7 +1648,7 @@
-
+
@@ -1782,7 +1782,7 @@
-
+
@@ -1939,7 +1939,7 @@
-
+
@@ -2018,7 +2018,7 @@
-
+
@@ -2161,7 +2161,7 @@
-
+
@@ -2568,7 +2568,7 @@
-
+
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index b4d6fb58ea1..068f3721371 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -37,7 +37,7 @@
-
+
@@ -198,7 +198,7 @@
-
+
@@ -306,7 +306,7 @@
-
+
diff --git a/addons/account/report/account_analytic_entries_report_view.xml b/addons/account/report/account_analytic_entries_report_view.xml
index 1d2e87be339..ee7bc934ce3 100644
--- a/addons/account/report/account_analytic_entries_report_view.xml
+++ b/addons/account/report/account_analytic_entries_report_view.xml
@@ -11,7 +11,7 @@
-
+
diff --git a/addons/account/report/account_entries_report_view.xml b/addons/account/report/account_entries_report_view.xml
index 2d1af681062..dbff131388d 100644
--- a/addons/account/report/account_entries_report_view.xml
+++ b/addons/account/report/account_entries_report_view.xml
@@ -83,7 +83,7 @@
-
+
diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml
index eebc95ae0e2..01e3dc72d68 100644
--- a/addons/account/report/account_invoice_report_view.xml
+++ b/addons/account/report/account_invoice_report_view.xml
@@ -35,7 +35,7 @@
-
+
diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml
index 88b89e68d9b..e4d9a928d28 100644
--- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml
+++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml
@@ -236,7 +236,7 @@
-
+
diff --git a/addons/account_analytic_default/account_analytic_default_view.xml b/addons/account_analytic_default/account_analytic_default_view.xml
index d37df72c987..b4f8c646f90 100644
--- a/addons/account_analytic_default/account_analytic_default_view.xml
+++ b/addons/account_analytic_default/account_analytic_default_view.xml
@@ -49,7 +49,7 @@
-
+
diff --git a/addons/account_asset/report/account_asset_report_view.xml b/addons/account_asset/report/account_asset_report_view.xml
index 19299eee501..ff6f0b0d52d 100644
--- a/addons/account_asset/report/account_asset_report_view.xml
+++ b/addons/account_asset/report/account_asset_report_view.xml
@@ -33,7 +33,7 @@
-
+
diff --git a/addons/account_bank_statement_extensions/account_bank_statement_view.xml b/addons/account_bank_statement_extensions/account_bank_statement_view.xml
index 51375dc5924..edb9e2fce7f 100644
--- a/addons/account_bank_statement_extensions/account_bank_statement_view.xml
+++ b/addons/account_bank_statement_extensions/account_bank_statement_view.xml
@@ -119,7 +119,7 @@
-
+
diff --git a/addons/account_followup/account_followup_customers.xml b/addons/account_followup/account_followup_customers.xml
index 8cd71989c8b..c91ce5533d5 100644
--- a/addons/account_followup/account_followup_customers.xml
+++ b/addons/account_followup/account_followup_customers.xml
@@ -51,7 +51,7 @@
-
+
diff --git a/addons/account_followup/report/account_followup_report.xml b/addons/account_followup/report/account_followup_report.xml
index e435e58da7b..e3f4ec6f8e9 100644
--- a/addons/account_followup/report/account_followup_report.xml
+++ b/addons/account_followup/report/account_followup_report.xml
@@ -26,7 +26,7 @@
help = "Including journal entries marked as a litigation"/>
-
+
diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml
index c363a4d5e40..40f1382130a 100644
--- a/addons/account_payment/account_payment_view.xml
+++ b/addons/account_payment/account_payment_view.xml
@@ -12,7 +12,7 @@
-
+
@@ -177,7 +177,7 @@
-
+
diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml
index 5b22f9cf74f..2b93231f741 100644
--- a/addons/account_voucher/account_voucher_view.xml
+++ b/addons/account_voucher/account_voucher_view.xml
@@ -132,7 +132,7 @@
-
+
diff --git a/addons/account_voucher/report/account_voucher_sales_receipt_view.xml b/addons/account_voucher/report/account_voucher_sales_receipt_view.xml
index 38b5423a7d6..a6e153573e7 100644
--- a/addons/account_voucher/report/account_voucher_sales_receipt_view.xml
+++ b/addons/account_voucher/report/account_voucher_sales_receipt_view.xml
@@ -57,7 +57,7 @@
-
+
diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml
index b9b58fdfc5e..83a9852e486 100644
--- a/addons/account_voucher/voucher_payment_receipt_view.xml
+++ b/addons/account_voucher/voucher_payment_receipt_view.xml
@@ -14,7 +14,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml
index e8766d49fbb..d0064d6336c 100644
--- a/addons/account_voucher/voucher_sales_purchase_view.xml
+++ b/addons/account_voucher/voucher_sales_purchase_view.xml
@@ -13,7 +13,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js
index 8273a96bcef..7d58bda0e1b 100644
--- a/addons/board/static/src/js/dashboard.js
+++ b/addons/board/static/src/js/dashboard.js
@@ -366,15 +366,13 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({
},
add_dashboard: function(){
var self = this;
- var getParent = this.getParent();
- var view_parent = this.getParent().getParent();
- if (! view_parent.action || ! this.$el.find("select").val()) {
+ if (! this.view.view_manager.action || ! this.$el.find("select").val()) {
this.do_warn("Can't find dashboard action");
return;
}
- var data = getParent.build_search_data();
- var context = new instance.web.CompoundContext(getParent.dataset.get_context() || []);
- var domain = new instance.web.CompoundDomain(getParent.dataset.get_domain() || []);
+ var data = this.view.build_search_data();
+ var context = new instance.web.CompoundContext(this.view.dataset.get_context() || []);
+ var domain = new instance.web.CompoundDomain(this.view.dataset.get_domain() || []);
_.each(data.contexts, context.add, context);
_.each(data.domains, domain.add, domain);
@@ -394,10 +392,10 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({
this.rpc('/board/add_to_dashboard', {
menu_id: this.$el.find("select").val(),
- action_id: view_parent.action.id,
+ action_id: this.view.view_manager.action.id,
context_to_save: c,
domain: d,
- view_mode: view_parent.active_view,
+ view_mode: this.view.view_manager.active_view,
name: this.$el.find("input").val()
}).done(function(r) {
if (r === false) {
@@ -412,12 +410,12 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({
this.$el.toggleClass('oe_opened');
if (! this.$el.hasClass('oe_opened'))
return;
- this.$("input").val(this.getParent().fields_view.name || "" );
+ this.$("input").val(this.view.fields_view.name || "" );
}
});
-instance.web.SearchView.include({
+instance.web.SearchViewDrawer.include({
add_common_inputs: function() {
this._super();
var vm = this.getParent().getParent();
diff --git a/addons/calendar/base_calendar_view.xml b/addons/calendar/base_calendar_view.xml
index 52f5a364522..7fa20a848fd 100644
--- a/addons/calendar/base_calendar_view.xml
+++ b/addons/calendar/base_calendar_view.xml
@@ -260,7 +260,7 @@
-
+
diff --git a/addons/calendar/calendar_view.xml b/addons/calendar/calendar_view.xml
index 22bf5460c8d..0c5f67ab2f9 100644
--- a/addons/calendar/calendar_view.xml
+++ b/addons/calendar/calendar_view.xml
@@ -260,7 +260,7 @@
-
+
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index bf9cd57a127..e02f43473ac 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -349,7 +349,7 @@
name='not_opt_out' domain="[('opt_out', '=', False)]"
help="Leads that did not ask not to be included in mass mailing campaigns"/>
-
+
@@ -571,7 +571,7 @@
help="Opportunities that are assigned to any sales teams I am member of" groups="base.group_multi_salesteams"/>
-
+
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index acac67666cc..87e4d1d293a 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -186,7 +186,7 @@
-
+
diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml
index 239579a70c2..bbe375fb2a1 100644
--- a/addons/crm/report/crm_lead_report_view.xml
+++ b/addons/crm/report/crm_lead_report_view.xml
@@ -79,7 +79,7 @@
-
+
diff --git a/addons/crm/report/crm_phonecall_report_view.xml b/addons/crm/report/crm_phonecall_report_view.xml
index 98f4a58d7c4..41af35df6b3 100644
--- a/addons/crm/report/crm_phonecall_report_view.xml
+++ b/addons/crm/report/crm_phonecall_report_view.xml
@@ -45,7 +45,7 @@
-
+
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 429d7e3a670..7f6309ee4f4 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -193,7 +193,7 @@
-
+
diff --git a/addons/crm_claim/report/crm_claim_report_view.xml b/addons/crm_claim/report/crm_claim_report_view.xml
index 2068ed8ea27..bc9293e7f91 100644
--- a/addons/crm_claim/report/crm_claim_report_view.xml
+++ b/addons/crm_claim/report/crm_claim_report_view.xml
@@ -44,7 +44,7 @@
-
+
diff --git a/addons/crm_helpdesk/crm_helpdesk_view.xml b/addons/crm_helpdesk/crm_helpdesk_view.xml
index 8ca5a1acc74..9264f8707bf 100644
--- a/addons/crm_helpdesk/crm_helpdesk_view.xml
+++ b/addons/crm_helpdesk/crm_helpdesk_view.xml
@@ -143,7 +143,7 @@
-
+
diff --git a/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml b/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml
index 4a3ee4e92e3..adc788ad505 100644
--- a/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml
+++ b/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml
@@ -42,7 +42,7 @@
-
+
diff --git a/addons/crm_partner_assign/report/crm_lead_report_view.xml b/addons/crm_partner_assign/report/crm_lead_report_view.xml
index 43997ac5609..0cbfac50f87 100644
--- a/addons/crm_partner_assign/report/crm_lead_report_view.xml
+++ b/addons/crm_partner_assign/report/crm_lead_report_view.xml
@@ -22,7 +22,7 @@
-
+
diff --git a/addons/crm_partner_assign/report/crm_partner_report_view.xml b/addons/crm_partner_assign/report/crm_partner_report_view.xml
index 62e54260285..a054d4d7605 100644
--- a/addons/crm_partner_assign/report/crm_partner_report_view.xml
+++ b/addons/crm_partner_assign/report/crm_partner_report_view.xml
@@ -12,7 +12,7 @@
-
+
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index 4f3d892a766..87da74c5658 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -110,7 +110,7 @@
-
+
diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml
index f611154bffd..1ae4d9c449e 100644
--- a/addons/event/event_view.xml
+++ b/addons/event/event_view.xml
@@ -280,7 +280,7 @@
-
+
@@ -436,7 +436,7 @@
-
+
diff --git a/addons/event/report/report_event_registration_view.xml b/addons/event/report/report_event_registration_view.xml
index ed0124b5459..faa484d5667 100644
--- a/addons/event/report/report_event_registration_view.xml
+++ b/addons/event/report/report_event_registration_view.xml
@@ -32,7 +32,7 @@
-
+
diff --git a/addons/fleet/fleet_view.xml b/addons/fleet/fleet_view.xml
index 0486f491d46..8cda28d56a5 100644
--- a/addons/fleet/fleet_view.xml
+++ b/addons/fleet/fleet_view.xml
@@ -61,7 +61,7 @@
-
+
@@ -329,7 +329,7 @@
-
+
@@ -610,7 +610,7 @@
-
+
@@ -716,7 +716,7 @@
-
+
@@ -924,7 +924,7 @@
-
+
diff --git a/addons/gamification/views/challenge.xml b/addons/gamification/views/challenge.xml
index d76fdc29a52..8a962c15d54 100644
--- a/addons/gamification/views/challenge.xml
+++ b/addons/gamification/views/challenge.xml
@@ -223,7 +223,7 @@
-
+
diff --git a/addons/gamification/views/goal.xml b/addons/gamification/views/goal.xml
index 4e1bf598f78..32382f179b7 100644
--- a/addons/gamification/views/goal.xml
+++ b/addons/gamification/views/goal.xml
@@ -110,7 +110,7 @@
-
+
@@ -274,7 +274,7 @@
-
+
diff --git a/addons/google_spreadsheet/static/src/js/search.js b/addons/google_spreadsheet/static/src/js/search.js
index c46ec615792..098f8635fbc 100644
--- a/addons/google_spreadsheet/static/src/js/search.js
+++ b/addons/google_spreadsheet/static/src/js/search.js
@@ -42,7 +42,7 @@ openerp.google_spreadsheet = function(instance) {
});
},
});
- instance.web.SearchView.include({
+ instance.web.SearchViewDrawer.include({
add_common_inputs: function() {
this._super();
var vm = this.getParent().getParent();
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 778199a8768..09e7373384e 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -121,7 +121,7 @@
-
+
@@ -394,7 +394,7 @@
-
+
diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml
index b6ff9bfc828..bd8fa81636b 100644
--- a/addons/hr_attendance/hr_attendance_view.xml
+++ b/addons/hr_attendance/hr_attendance_view.xml
@@ -56,7 +56,7 @@
-
+
diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml
index 01b2842f30b..3c06c472f1f 100644
--- a/addons/hr_contract/hr_contract_view.xml
+++ b/addons/hr_contract/hr_contract_view.xml
@@ -62,7 +62,7 @@
-
+
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index 70e96c9f589..cf6e24c694b 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -9,7 +9,7 @@
-
+
@@ -333,7 +333,7 @@
-
+
diff --git a/addons/hr_evaluation/report/hr_evaluation_report_view.xml b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
index 456b5ab72f9..073e648fe98 100644
--- a/addons/hr_evaluation/report/hr_evaluation_report_view.xml
+++ b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
@@ -30,7 +30,7 @@
-
+
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index 2075f56da46..3877a8edd42 100644
--- a/addons/hr_expense/hr_expense_view.xml
+++ b/addons/hr_expense/hr_expense_view.xml
@@ -162,7 +162,7 @@
-
+
diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml
index f2ba5290c96..5655b965f7c 100644
--- a/addons/hr_expense/report/hr_expense_report_view.xml
+++ b/addons/hr_expense/report/hr_expense_report_view.xml
@@ -35,7 +35,7 @@
-
+
diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml
index b1a9fd366c9..bb3b7a5a93f 100644
--- a/addons/hr_holidays/hr_holidays_view.xml
+++ b/addons/hr_holidays/hr_holidays_view.xml
@@ -20,7 +20,7 @@
-
+
diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml
index 80cfd7f34e0..7bb9d28f65a 100644
--- a/addons/hr_payroll/hr_payroll_view.xml
+++ b/addons/hr_payroll/hr_payroll_view.xml
@@ -171,7 +171,7 @@
-
+
@@ -357,7 +357,7 @@
-
+
@@ -641,7 +641,7 @@
-
+
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index e6c650945fc..1e81d1555d4 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -208,7 +208,7 @@
-
+
diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml
index 76a1ee02a3f..101423d007c 100644
--- a/addons/hr_timesheet/hr_timesheet_view.xml
+++ b/addons/hr_timesheet/hr_timesheet_view.xml
@@ -70,7 +70,7 @@
-
+
diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
index fa48dc7b136..ebf188ae3b3 100644
--- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
+++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
@@ -51,7 +51,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index 43f970801a5..d6d287e7137 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -184,7 +184,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
index 8e06530ee9b..30757a0b43e 100644
--- a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
@@ -28,7 +28,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
index a85b17b88af..9b45229c2cc 100644
--- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
@@ -35,7 +35,7 @@
-
+
diff --git a/addons/im_livechat/im_livechat_view.xml b/addons/im_livechat/im_livechat_view.xml
index 20a531067b9..1be26e23294 100644
--- a/addons/im_livechat/im_livechat_view.xml
+++ b/addons/im_livechat/im_livechat_view.xml
@@ -150,7 +150,7 @@
-
+
diff --git a/addons/l10n_be_coda/l10n_be_coda_view.xml b/addons/l10n_be_coda/l10n_be_coda_view.xml
index f9ea814b120..dc147ae3100 100644
--- a/addons/l10n_be_coda/l10n_be_coda_view.xml
+++ b/addons/l10n_be_coda/l10n_be_coda_view.xml
@@ -66,7 +66,7 @@
-
+
diff --git a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml
index a0beb8db145..47ac49eb278 100644
--- a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml
+++ b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml
@@ -144,7 +144,7 @@
-
+
diff --git a/addons/l10n_in_hr_payroll/report/payment_advice_report_view.xml b/addons/l10n_in_hr_payroll/report/payment_advice_report_view.xml
index 38f1272718b..300d7932bc3 100644
--- a/addons/l10n_in_hr_payroll/report/payment_advice_report_view.xml
+++ b/addons/l10n_in_hr_payroll/report/payment_advice_report_view.xml
@@ -54,7 +54,7 @@
-
+
diff --git a/addons/l10n_in_hr_payroll/report/payslip_report_view.xml b/addons/l10n_in_hr_payroll/report/payslip_report_view.xml
index d71cb283336..8293b26a7f3 100644
--- a/addons/l10n_in_hr_payroll/report/payslip_report_view.xml
+++ b/addons/l10n_in_hr_payroll/report/payslip_report_view.xml
@@ -50,7 +50,7 @@
-
+
diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml
index 5c752f3fa18..55f35f46598 100644
--- a/addons/lunch/lunch_view.xml
+++ b/addons/lunch/lunch_view.xml
@@ -21,7 +21,7 @@
-
+
@@ -52,7 +52,7 @@
-
+
diff --git a/addons/mail/mail_alias_view.xml b/addons/mail/mail_alias_view.xml
index 74c031781b0..c4d1e67dd37 100644
--- a/addons/mail/mail_alias_view.xml
+++ b/addons/mail/mail_alias_view.xml
@@ -60,7 +60,7 @@
-
+
diff --git a/addons/mail/mail_mail_view.xml b/addons/mail/mail_mail_view.xml
index 0827b638b14..d32eade0dc4 100644
--- a/addons/mail/mail_mail_view.xml
+++ b/addons/mail/mail_mail_view.xml
@@ -108,7 +108,7 @@
-
+
diff --git a/addons/mail/mail_message_view.xml b/addons/mail/mail_message_view.xml
index 1a6a80b1e2c..dde087de597 100644
--- a/addons/mail/mail_message_view.xml
+++ b/addons/mail/mail_message_view.xml
@@ -71,7 +71,7 @@
-
+
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index e5eca724659..04e99f5de0e 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -1915,11 +1915,11 @@ openerp.mail = function (session) {
* @param {Object} defaults ??
*/
load_searchview: function (defaults) {
- var self = this;
var ds_msg = new session.web.DataSetSearch(this, 'mail.message');
this.searchview = new session.web.SearchView(this, ds_msg, false, defaults || {}, false);
- this.searchview.appendTo(this.$('.oe_view_manager_view_search'))
- .then(function () { self.searchview.on('search_data', self, self.do_searchview_search); });
+ this.searchview.on('search_data', this, this.do_searchview_search);
+ this.searchview.appendTo(this.$('.oe_view_manager_view_search'),
+ this.$('.oe_searchview_drawer_container'));
if (this.searchview.has_defaults) {
this.searchview.ready.then(this.searchview.do_search);
}
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 3aea4a19555..62ecdcd89d6 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -191,8 +191,15 @@
-
-
+