Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo 13 CE - website_membership - Problem with sort order of members

Subscribe

Get notified when there's activity on this post

This question has been flagged
websitemembershipOdoo13.0
2 Replies
3176 Views
Avatar
Christian Fraesdorff

Hello everyone,

I am currently transferring a website for a club from Odoo 11 CE to Odoo 13 CE. Installed are among others the modules "membership" and "website_membership".

"website_membership" creates a (web) index page of the members. This page is (correctly) sorted alphabetically in Odoo 11, but not in Odoo 13. Here are two example sections to illustrate this:

in Odoo 11 CE - correct / as I need it:

Abfall..., ABO W..., AEV ..., Arma..., Awi..., BDZ...,

in Odoo 13 CE - incorrect:

ABO W..., AEV..., Abfall..., Arma..., Awi..., BDZ...

on the one hand I don't understand the reason - as far as I understand the source-code (templates / controllers), I don't see any difference - and on the other hand I don't know how I can correct this ... Maybe someone has a hint?
Btw the only installed language is German (Odoo 11 CE as well as 13 CE - so the language seems to be not the problem.

0
Avatar
Discard
Avatar
Christian Fraesdorff
Author Best Answer

Hello Mohamed - thanks for your efforts. Unfortunately this does not seem to be the solution, apart from the fact that I could not implement it.

In the meantime I have found that the problem seems to go deeper. Because when I look at the contacts in Odoo 11 - regardless of the website problem - they are sorted exactly as I described above for the listing of members on the website in Odoo 11. 

The same applies to the sorting of the contacts in the contact view in Odoo 13 - i.e. there the contacts are sorted differently than in Odoo 11 - exactly as I described it for the listing of the members in Odoo 13 on the website. In my opinion this sorting is wrong because it should be alphabetically independent of upper or lower case letters and the German letters "ÜÖÄüöä" should not be sorted to the end of a list ...


So now the question arises whether the basic sorting in Odoo was changed from version 11 to 13 and / or which parameter I did not / incorrectly set in Odoo 13 to get the same result as in Odoo 11?

By the way - I have not adjusted / changed any sorting settings for the contact masks in Odoo 11 or Odoo 13 - everything is standard.

1
Avatar
Discard
Avatar
Mohamed Lamine Lalmi
Best Answer

Hello Christian,

The membership records, by default, are ordered by id. Please refer to addons/membership/models/membership.py --> membership.line model:

class MembershipLine(models.Model):
_name = 'membership.membership_line'
_rec_name = 'partner'
_order = 'id desc'
_description = 'Membership Line'

To achieve your need, you can override the members controller on the module website_membership and add the order attribute to search method call when searching membership lines. (website_membership/controllers/main.py --> members method)

I hope that my response will be helpful for you.

Good luck.


0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Require checkbox to be selected Solved
form website Odoo13.0
Avatar
Avatar
1
Nov 20
7386
HOW TO INHERIT DEFAULT CREATED WEBSITE MENUS IN MULTI-WEBSITE Solved
website multi-website Odoo13.0
Avatar
1
Sep 20
4073
Why odoo13 website menu fade out so slow?
menu website Odoo13.0
Avatar
Avatar
1
Jul 20
4211
inherit the home controller odoo 13
controller website Odoo13.0
Avatar
2
Jul 20
5017
how to limit website content visibility by group odoo 13
python website Odoo13.0
Avatar
0
Jun 20
3406
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now