Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7799 มุมมอง

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>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 24
2260
1
พ.ย. 23
1468
0
ต.ค. 17
5035
4
พ.ค. 23
9155
1
ก.พ. 23
5757