[FIX] crm_project_issue: one more handrolled ref/xmlid_to_res_id
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user