Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7790 Zobrazení

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

How can i do it ?

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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>
</tree>

</field>
</record>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 24
2251
1
lis 23
1467
0
říj 17
5018
4
kvě 23
9151
1
úno 23
5757