Odoo Help


How to add a "Create Task" button on the lead form

on 7/31/14, 10:36 AM 1,896 views

I would like to know to add "Create Task" button on the lead/opportunities form.

I need to be able to create task easily from the form view in the same way I can log a phone call.

How do I do that ?

Thank you.


Ludo - 21South

--Ludo - 21South--
| 2 2 5
Zwijndrecht, Netherlands
--Ludo - 21South--


Ludo - 21South
On 7/31/14, 11:28 AM

You will need a custom module for that. You can then intherit the form and create a button which calls a method. This methd creates a task. You can just use the create method for that, like so:

self.pool.get('project.task').create(cr, uid, your_values)

If you need a link back, you might want to consided extending crm.lead with a one2many field that contains all the tasks created for this lead.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/31/14, 10:36 AM
Seen: 1896 times
Last updated: 3/16/15, 8:10 AM