Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2338 Vistas

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

Avatar
Descartar
Mejor respuesta

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')]"/>

Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 22
1926
2
jul 25
3903
1
nov 22
3178
1
mar 22
2527
1
may 24
3159