تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6481 أدوات العرض

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
يوليو 25
6359
0
نوفمبر 23
1380
0
سبتمبر 22
803
1
يناير 19
4869
3
أبريل 24
2593