Skip to Content
Menú
This question has been flagged
1 Respondre
2407 Vistes

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

Avatar
Descartar
Best Answer

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

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

Avatar
Descartar

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 Respostes Vistes Activitat
1
de nov. 22
2017
2
de jul. 25
4146
1
de nov. 22
3306
1
de març 22
2693
1
de maig 24
3423