Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Open a kanban with a button - Error: Can't find field 'stage_id' in the following view parts composing the view...

By
Selverine
on 7/29/15, 1:00 PM 535 views

Hi everybody,

I would like to be able to Open a kanban form with a button.

My Kanban is the project.task one.

I tried the code below but I got this error:


View error
Can't find field 'stage_id' in the following view parts composing the view of object model 'project.task':
* project.task.kanban


Someone has an idea about my problem? It will be great ;-)

Thank you a lot!

Selverine

PS: This is my code:

 def action_view_tasks(self, cr, uid, ids, context=None):
        #pdb.set_trace()
view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'project', 'view_task_kanban')
view_id = view_ref and view_ref[1] or False,
this = self.browse(cr, uid, ids, context=context)[0]
return {
'type': 'ir.actions.act_window',
'name': 'Form heading',
'view_mode': 'form',
'view_type': 'form',
'view_id': view_id,
'res_model': 'project.project',
'nodestroy': True,
'res_id': this.id, 
'target':'new',
'context': context}


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/29/15, 1:00 PM
Seen: 535 times
Last updated: 8/4/15, 9:43 AM