[FIX] crm_project_issue: one more handrolled ref/xmlid_to_res_id

This commit is contained in:
Xavier Morel
2015-08-24 11:26:37 +02:00
parent 2c48bfe68f
commit 3e8727e2aa
+2 -1
View File
@@ -47,7 +47,8 @@ class crm_lead_to_project_issue_wizard(osv.TransientModel):
# delete the lead
Lead.unlink(cr, uid, [lead.id], context=None)
# return the action to go to the form view of the new Issue
view_id = self.pool.get('ir.ui.view').search(cr, uid, [('model', '=', 'project.issue'), ('name', '=', 'project_issue_form_view')])
view_id = self.pool['ir.model.data'].xmlid_to_res_id(
cr, uid, 'project_issue.project_issue_form_view', context=context)
return {
'name': 'Issue created',
'view_type': 'form',