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.


How can I sort Tasks in projects by date?

Dr Obx
on 4/8/15, 9:28 AM 591 views

Guys, is it possible to sort tasks in projects by date ?

How can i do it ?

Dovydas Bagdonas
On 10/12/15, 7:43 AM

Hi. Go to Project -> Tasks, turn on the List view and then use Advanced filters (e.g Ending date) to filter the information.


Akhil P Sivan

--Akhil P Sivan--
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 10/12/15, 9:00 AM

You can use either _order in your python file by inheriting the project.task model or by adding the default_order attribute by inheriting the tree view in your xml file.

in .py file:

class task(models.Model):
_inherit = 'project.task'
_order = 'date_start desc'

in xml file:

<record id="view_task_tree2_inherited" model="ir.ui.view">
<field name="name">view.task.tree2.inherited</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<tree position="attributes">
<attribute name="default_order">date_start desc</attribute>


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: 4/8/15, 9:28 AM
Seen: 591 times
Last updated: 10/12/15, 9:01 AM