Skip to Content
Menú
This question has been flagged
1 Respondre
7358 Vistes

Hello everyone,

Do you know how to get the month (or the month and the year) of a date type field in xml ?

I would like to compare it like I compare the day :

<field name="domain">[('date_field','=', time.strftime('%Y-%m-%d'))]</field>

PS : sorry for my english :s

Avatar
Descartar
Best Answer

Hi There is nothing like this that you can select via month in a date field but you can make a dynamic domain

for that case you can split month and check it plz be sure dynamic domain are work on on change

thank
Sandeep

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de març 15
5528
1
de juny 24
2997
1
de nov. 22
3238
3
de nov. 21
25902
1
d’ag. 21
3546