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

By default odoo displays products by "Last added" i think that's a natural way to show them, but i need to display them by A to Z order

So i need to know how can i do this, if need to change something in a view, or i need to set a controller

thanks

形象
丢弃
最佳答案

Hi Kevin,

Below will work in sorting products A to Z

On the website_sale controller
With this method -->  _get_search_order(self, post) 

you can add the Orders like "post.get('order', 'name asc')"

Thanks.


形象
丢弃
最佳答案

Watch one of these Youtube Videos

1. Linux - How to Order Odoo Website Shop Products Alphabetically, https://www.youtube.com/watch?v=kmHIK9T2Ef0

2. Windows - How to Order Odoo Website Shop Products Alphabetically, https://www.youtube.com/watch?v=msfruoLLzb8

形象
丢弃
相关帖文 回复 查看 活动
2
7月 25
6734
0
11月 23
1532
0
9月 22
803
1
1月 19
5123
3
4月 24
2770