Sorting Selection-Type Fields in Odoo List View by Defined Order | Odoo List View: How to Sort Selection Fields by Sequence Instead of Alphabetically
by Probuse Consulting Service Pvt. Ltd. http://www.probuse.com$ 349.17
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 24 |
Technical Name |
odoo_selection_sort_listview |
License | See License tab |
Website | http://www.probuse.com |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 24 |
Technical Name |
odoo_selection_sort_listview |
License | See License tab |
Website | http://www.probuse.com |
Sorting Selection Type Fields in Odoo List View by Defined Order | Odoo List View: How to Sort Selection Fields by Sequence Instead of Alphabetically
Control List View Sorting of Selection Fields in Odoo Using Sequences Given on Field Level | Override Default Sorting of Selection Fields in Odoo List Views
This module enhances the default list view sorting behavior in Odoo when using selection fields (fields with predefined options like status, state, stage, etc.). This customization ensures that records are sorted according to the defined logical order of selection options, providing a more intuitive user experience. It works globally for all selection fields in Odoo list views, and is not limited to any specific model or class.
Main Features:
- Logical Sorting for Selection Fields:
- Automatically sorts records based on the order defined in selection fields, rather than alphabetical order.
- Workflow Aligned Record Display:
- Supports business logic by showing records in a meaningful progression (e.g., Draft, Confirmed, Done).
- Applies in List Views Automatically:
- No need for additional configuration. Works when sorting any list view by a selection field.
- Ascending and Descending Support:
- Correctly handles both ascending and descending sorts based on selection order.
- Non Selection Fields Remain Unaffected:
- Only selection fields are impacted. All other fields (e.g., date, name, amount) retain Odoos default sorting behavior.
- Improved Usability for Status Based Views:
- Makes it easier for users to visually scan and understand status driven processes, such as sales stages or project phases.
- For more details, please refer to the screenshots and demo video provided below.
Workflow:
-
Install the Module:
- Add the module to your Odoo instance and install it no further setup required.
-
Go to a List View:
- Open any list view that contains a selection field (e.g., state, status, stage_id).
-
Click to Sort the Column:
- Sort by the selection field by clicking the column header.
-
See Logical Order in Action:
- Records will appear in the order defined in the selection field, instead of alphabetical order.
-
Use as Usual:
- All other Odoo features continue to work normally this enhancement is seamlessly integrated.
Edition Compatibility:
Enterprise Odoo.sh Community
Fields Form View (Odoo Standard) Example

Before Our Module Install Status Field Sorting Alphabetical

After Our Module Install Status Field Sorting Based on The Order Defined in Selection Fields
Descending

Ascending

Contact / Support
Introducing
Probuse Consulting Services Pvt. Ltd.

If you need any help or want more additional features, you may contact us through:
Email: contact@probuse.com
Website: www.probuse.com
Skype: mustufa_probuse
Probuse Consulting Service Pvt Ltd is an Software and Web development specialist which offers complete business application together. We are well experienced to provide a face for your business on the software and Internet level.
Probuse Consulting Service Pvt Ltd is a specialist in Odoo/OpenERP services and could give your business open source hand to drive.
Our Services
Odoo Implementation
Odoo Support
Odoo Customization
Odoo Migration
Odoo Training
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module