Browse Source

PATCH courtesy of Alexey Chechel

Remove view_type: form (it's the default value).
pull/7/head
Alexis de Lattre 11 years ago
parent
commit
19d6dedd5f
  1. 3
      asterisk_click2dial_crm/wizard/create_crm_phonecall.py
  2. 2
      asterisk_popup/popup.py

3
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

2
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',

Loading…
Cancel
Save