Skip to Content
Menu
This question has been flagged

domain code is:

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

i am using openerp 7.0

and i have used context_today instead of time but its giving same type error that 'name context_today is not defined'.

Can anyone help Please.. Thanks in advance.

Avatar
Discard
Best Answer

Hello,

context_today is a function. Use it like that :  context_today().strftime('%%Y-%%m-%%d')

Thanks


Avatar
Discard
Related Posts Replies Views Activity
1
Mar 23
2127
1
Jul 21
2061
3
Oct 19
11040
2
Feb 17
6878
0
Oct 24
170