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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
kwi 25
|
700 | ||
|
2
mar 25
|
599 | ||
|
2
mar 25
|
1113 | ||
|
1
lut 25
|
778 | ||
|
7
lut 25
|
1773 |