[FIX] base_setup, fetchmail: add target in action methods opening a form view

bzr revid: rco@openerp.com-20120629134151-oqharq4xhylq3fze
This commit is contained in:
Raphael Collet 2012-06-29 15:41:51 +02:00
parent a81e6c8980
commit 863a810f15
2 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,8 @@ class base_config_settings(osv.osv_memory):
'view_mode': 'form',
'res_model': 'res.company',
'res_id': user.company_id.id,
}
'target': 'current',
}
# Preferences wizard for Sales & CRM.
# It is defined here because it is inherited independently in modules sale, crm,

View File

@ -85,6 +85,7 @@ class fetchmail_config_settings(osv.osv_memory):
'type': 'ir.actions.act_window',
'res_model': 'fetchmail.server',
'view_mode': 'form',
'target': 'current',
}
model_name = self._columns[field].fetchmail_model
model_id = self.pool.get('ir.model').search(cr, uid, [('model', '=', model_name)])[0]