Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7390 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 15
5569
1
черв. 24
3071
1
лист. 22
3271
3
лист. 21
25929
1
серп. 21
3577