Skip to Content
Menu
This question has been flagged

I need a today filter with confirmed sale order. Can anyone help with this? 

Avatar
Discard
Best Answer

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

You need to inherit search view and add below line to have filter of all the confirmed SOs today:
<filter string="Confirmed SOs Today" name="confirmed_so_today"
domain="[('date_order', '&gt;=', context_today().strftime('%Y-%m-%d')),('date_order', '&lt;=', context_today().strftime('%Y-%m-%d')),('state','=','sale')]"/>

Related Posts Replies Views Activity
1
Nov 22
1170
2
May 22
2526
1
Nov 22
2219
1
Mar 22
1705
1
May 24
1433