コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7796 ビュー

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

How can i do it ?

アバター
破棄
最善の回答

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

アバター
破棄
最善の回答

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>
アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 24
2259
1
11月 23
1468
0
10月 17
5035
4
5月 23
9153
1
2月 23
5757