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.


Module "Create Tasks on SO" : Can I change the generated name? [Closed]

on 5/14/13, 7:45 AM 1,190 views

The Question has been closed

Sudhir Arya (SA)
on 05/15/2013 02:46:12

I am using the module "Create Tasks on SO". Here is what this module does:

This module will automatically create a new task for each procurement order line (e.g. for sale order lines), if the corresponding product meets the following characteristics: Product Type = Service Procurement Method = Make to Order Procurement Method = Manufacture If on top of that a projet is specified on the product form (in the Procurement tab), then the new task will be created in that specific project.

This is an excellent module, and I can make good use out it's functionality; but there's one thing bothering me. The name the generated task will receive is made like this: "Order number + : + Product name". Example: SO101: Quick Intervention.

Once you have a few tasks, and in our case especially seeing we're selling the same products a lot; it will be hard to keep track of which task belongs to which client.

I am looking for a way to change the generated name. E.g. into "Order number + , + Client name + : + Product name".

This way it'd be easier to navigate through the task list, and get an idea about what each record represents; rather than having to go back to the SO list to verify each time.

Does anyone have an idea how I might best approach this feat?


Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 5/14/13, 8:03 AM

If you want to create custom module then you have to override def action_produce_assign_service method and then can change name of task according to your requirement.

If you want to change core module then go to project_mrp/project_procurement.py and find def action_produce_assign_service method in that you can change 'name': '%s:%s' % (procurement.origin or '', procurement.product_id.name), this piece of code to change task name.

Thank you very much, your instruction was spot on.

on 5/14/13, 2:33 PM

My pleasure.

Sudhir Arya (SA)
on 5/15/13, 1:35 AM

About This Community

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

Question tools

0 follower(s)


Asked: 5/14/13, 7:45 AM
Seen: 1190 times
Last updated: 3/16/15, 8:10 AM