콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7784 화면

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
2248
1
11월 23
1467
0
10월 17
5018
4
5월 23
9150
1
2월 23
5755