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