跳至内容
菜单
此问题已终结
2 回复
7570 查看

Use case : how to order helpdesk tickets based on the kanban_state field?
https://drive.google.com/file/d/1XNDcyx2Kcog40WlGug3kHg80GhvTozKh/view
 

形象
丢弃
编写者 最佳答案

STEPS

1) Activate the developer mode

2) Enter studio while on the kanban view you'd like to impact

3) Change the default group by in Studio. Select the field that you want the records to be ordered with (here : kanban_state)

4) Find the inherited view generated by point 3 

5) In the inherited view, replace "default_group_by" by "default_order"

6) Save and enjoy a good mojito



INHERITED VIEW

<data>

  <xpath expr="//kanban[1]" position="attributes">

    <attribute name="default_order">kanban_state</attribute>

  </xpath>

</data>

形象
丢弃

awesome. cheers!

最佳答案

It works well for me, thanks :)


I tried first to have the sorting rules  into ir.filters    => ['customer_rank desc']   doesnt work

Inherited kanban view with below works :



 
    customer_rank desc
 

 


形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
845
2
11月 24
2384
0
10月 24
1223
1
7月 24
1362
2
4月 24
5942