From 19d6dedd5fa8c66814bd7a7aca5403f127a322c9 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 24 Jun 2014 00:07:40 +0200 Subject: [PATCH] PATCH courtesy of Alexey Chechel Remove view_type: form (it's the default value). --- asterisk_click2dial_crm/wizard/create_crm_phonecall.py | 3 +-- asterisk_popup/popup.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/asterisk_click2dial_crm/wizard/create_crm_phonecall.py b/asterisk_click2dial_crm/wizard/create_crm_phonecall.py index a5f05d8..6a5f8ef 100644 --- a/asterisk_click2dial_crm/wizard/create_crm_phonecall.py +++ b/asterisk_click2dial_crm/wizard/create_crm_phonecall.py @@ -55,7 +55,6 @@ class wizard_create_crm_phonecall(orm.TransientModel): 'name': partner.name, 'domain': [('partner_id', '=', partner.id)], 'res_model': 'crm.phonecall', - 'view_type': 'form', 'view_mode': 'form,tree', 'type': 'ir.actions.act_window', 'nodestroy': False, # close the pop-up wizard after action @@ -71,6 +70,6 @@ class wizard_open_calling_partner(orm.TransientModel): '''Started by button on 'open calling partner wizard''' partner = self.browse(cr, uid, ids[0], context=context).partner_id action = self.pool['wizard.create.crm.phonecall'].\ - create_open_crm_phonecall( + _create_open_crm_phonecall( cr, uid, partner, crm_categ='Inbound', context=context) return action diff --git a/asterisk_popup/popup.py b/asterisk_popup/popup.py index b3899cc..1ce3a45 100644 --- a/asterisk_popup/popup.py +++ b/asterisk_popup/popup.py @@ -35,7 +35,6 @@ class res_partner(orm.Model): 'name': 'Partner', 'type': 'ir.actions.act_window', 'res_model': 'res.partner', - 'view_type': 'form', 'view_mode': 'form,tree,kanban', 'views': [[False, 'form']], # Beurk, but needed 'target': 'new', @@ -46,7 +45,6 @@ class res_partner(orm.Model): 'name': 'No Partner Found', 'type': 'ir.actions.act_window', 'res_model': 'wizard.open.calling.partner', - 'view_type': 'form', 'view_mode': 'form', 'views': [[False, 'form']], # Beurk, but needed 'target': 'new',