Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
133 Vistas

We're a bookshop migrating to Odoo Online from another eCommerce system, bulk importing our existing products.

It's critically important that the store can be sorted accurately by release date of each book.

However it seems that the 'Newest Arrivals' sort order only works off the create_date​ of the product record, which for all our existing products will be the same from the bulk import. 

Even for new books this will be a problem, as a highly anticipated book might get created many months in advance, and thus it will have the incorrect chronological position with the 'Newest Arrivals' sorting.

I understand in Odoo Online it's not possible to create custom sort orders or to change how the field that 'Newest Arrivals' references.

I have also tried overwriting create_date​ with an automation as a hack, but unsurprisingly this doesn't seem to be possible.

Does anyone have a workaround suggestion for this?

Avatar
Descartar
Mejor respuesta

Visit the User Defined Filters Menu (in Developer Mode).

There, you can change the definition of the Sort field in the Newest Products Filter:

Perhaps using x_studio_release_date here instead of create_date would work?


Avatar
Descartar
Autor

I tried editing User Defined Filters as suggested but unfortunately this does not seem to affect the "Newest Arrivals" sorting option on the eCommerce website.

Autor Mejor respuesta

I have resolved this issue by updating publish_date​ to match the x_studio_release_date​ we are importing. 'Newest Arrivals' seems to sort on this field.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 22
3127
1
dic 23
2891
2
ago 25
1598
1
jun 24
2825
0
may 23
448