Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
131 Vistas

"In the 'List' report from the Sales module, I added the 'Estimated Date' field. How can I sort by this field? (the arrows for sorting do not appear on the field)"

Avatar
Descartar
Mejor respuesta

Hello  Lumio Tehnic ,

If it is a computed field with store=False, you cannot sort it in the List view. You need to set store=True to enable sorting.

Feel free to reach out us at:- lakhan@codespheretech.in

Avatar
Descartar
Mejor respuesta

Hello Lumio Tehnic,



  The 'Estimated Date' field might not be sortable by default in the list view because it may not be correctly configured as a sortable field in the view's underlying model.

  To enable sorting, you would typically need to ensure that the field is properly defined in the model (e.g., sale.order) and that the list view does not have any conflicting configurations.

  If you are familiar with Odoo development, you can modify the view definition in the XML to explicitly allow sorting on this field. However, this usually requires custom development.

  Alternatively, consider using Odoo Studio (if available) to customize the view and check if it allows you to enable sorting on the 'Estimated Date' field without direct code modification.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

Avatar
Descartar
Mejor respuesta

Hello Lumio Tehnic!



  The 'Estimated Date' field might not be sortable by default in the list view because it may not be correctly configured as a sortable field in the view's underlying model.

  To enable sorting, you would typically need to ensure that the field is properly defined in the model and that the list view is configured to allow sorting on that field. This often involves technical adjustments.

  If you have access to Odoo Studio, you can try modifying the list view to explicitly enable sorting on the 'Estimated Date' field. If not, custom code might be needed to adjust the model and view definitions.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

Avatar
Descartar
Mejor respuesta

Hi,

To sort the list, click on the field.


Hope it helps

Avatar
Descartar