Hello,
I wanted to add domain to my record having domain condition for time that is
**<field name="domain">[('call_schedule_date', '<',time.strftime('%Y-%m-%d'))]</field>**
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I wanted to add domain to my record having domain condition for time that is
**<field name="domain">[('call_schedule_date', '<',time.strftime('%Y-%m-%d'))]</field>**
('call_schedule_date', '<', datetime.datetime.strftime('%Y-%m-%d')
use domain or attrs
Hi,
Use "<" instead of '<'
Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com
Hello,Used that one too but does nt work like how in project/project_view.xml line # 643 works
Not sure if this helps, but this is how I use datetimes in search view filters:
<filter name="filter_today_timelogs" string="Today" domain="[('log_date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('log_date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" />
Main difference I can see between our code samples is mine uses double percent (%) signs in the domain and I use < instead of <
Might be worth a try.
thanks for this It helped me