跳至內容
選單
此問題已被標幟
1 回覆
7224 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 15
5360
1
6月 24
2728
1
11月 22
3104
3
11月 21
25663
1
8月 21
3428