تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5123 أدوات العرض

Hi,

All modules have field create_date

I need create a filter to know all records for a specific day. It's possible?

Imagine that:

I have two records with different create_date (ex: 2014-08-17 13:35:46.093446 and 2014-08-18 14:55:43.745183).
I want search for a specific day, ex: "2014-08-17". In this case my flter returns one record -> 2014-08-17 13:35:46.093446. 

I try this code, but without results:

<field name="create_date" domain="[('create_date','&lt;=',(self.strftime('%%Y-%%m-%%d %%H:%%M:%%S')),('create_date','&gt;=',(self.strftime('%%Y-%%m-%%d %%H:%%M:%%S'))]"/>

Thanks in advance.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 20
10791
2
يناير 23
13586
0
أبريل 18
5448
1
أكتوبر 15
5186
2
يناير 24
2371