Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2376 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
1965
2
jul 25
4021
1
nov 22
3240
1
mar 22
2617
1
may 24
3287