add the “today” filter to a view in the pos session model. To view today's sessions only
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
Hi,
To add a "today" filter to a view in the POS session model in Odoo, you can use domain filtering in the XML definition of the view.
Hope it helps
Thank you very much, does it also work in studio with odoo entreprises in saas?
Hi.
I copy and paste your filter domain but for use in crm.lead model with create_date field but i have an error:
Uncaught Promise > Failed to evaluate the domain: ["&", ("type", "=", "opportunity"), ("create_date", ">=", datetime.datetime.combine(datetime.date.today(), datetime.time.min))]. Cannot read properties of undefined (reading 'hour')
can you help me or maybe give some ideas?
I assume that this is checking today in UTC which might not be the same as in user's timezone.
In the XML you'd need to encode '<' and '>' characters using < and >, probably this is Gabriel's issue.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
3
juil. 25
|
2243 | ||
|
0
juil. 25
|
302 | ||
Import/Export Excel files
Résolu
|
|
3
mai 25
|
1171 | |
|
1
juil. 25
|
717 | ||
|
1
mai 25
|
819 |