Odoo Help


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.


Create a "link" to another OpenERP Page - OpenERP 7

on 7/18/15, 7:30 AM 702 views

Hi everyone,

I would like to know how is possible to create a link to another OpenERP Page.

In sale/customers/History, there is the tasks module. 

I can create or delete new tasks. However, I would like to be able to see all tasks fast.

So instead of going to Project/my tasks , I would like to be able to just click on a link in the History part to open Project/My tasks.

Is it possible?

Thank you for your help,


On 7/18/15, 2:39 PM


So I decided to try to create a button that will open my view.

I would like to open a view with the Kanban that I can find under Project/My tasks.

I have this error when I press the button:

View error

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

* project.task.kanban

Any idea about what is wrong inside my python code?

Thank you a lot,

This is my code:

    def action_view_tasks(self, cr, uid, ids, context=None):
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, 
'context': context}

On 7/18/15, 8:24 AM

I didn't understand on what history are you referring to, but I think you just need a quick link on menu to go to tasks page, then you can do a simple menu edit from the GUI.

Go to settings --> User Interface --> Menu Items

and have a look on Project/Project menu (where tasks are) and create the same voice wherever you want. 

If you need something different please elaborate more your question, thanks.

Hi Federico, Thank you for your answer. The history it is sale/customers/History. But nevermind, what I would like it is not to duplicate the tasks page to another one place, but I would like when I am inside a page (the history but it can be another one), to just click to a button or a link in order to jump the task page. It is like with Order. When you confirm it you can create and go to the invoice part. Thank you, Selverine

on 7/18/15, 10:03 AM

I'm still not understanding if you are referring to journal items with "history". Duplicate a voice on menu doesn't mean your're duplicating a page. It's just a link. There is another solution, you can add a button with an action calling the view and again you can do that via GUI but it's better do it with a custom module.

on 7/18/15, 10:15 AM

History is the name of the portal inside the customers page. Inside this portel you can add or remove tasks. A button will be perfect. But how call the tasks page?. Thank you a lot for your help.

on 7/18/15, 11:33 AM

Selverine, please tell me exactly where is this History because I can't see it on my CRM module nor on another place on portal (probably because we use to sell just with POS). If I can't see it I can't try to guide you. Did you install a external module?

on 7/18/15, 12:07 PM

Ok, I seen on another thread you are using V7 this is a fundamental information do to some differences on web interfaces. Please edit your post and add a V8 tag. I'm sorry but since I'm on V8 and I can't guarantee a mod will work...

on 7/18/15, 12:19 PM

Hi. Yes probably it comes from an external module. A module with task/project I will say. So I will try to add a button and I will let you know ;-). Thank you for your help! Selverine

on 7/18/15, 12:56 PM

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)


Asked: 7/18/15, 7:30 AM
Seen: 702 times
Last updated: 7/18/15, 2:39 PM