İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2568 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

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

Avatar
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 22
2165
2
Tem 25
4467
1
Kas 22
3519
1
Mar 22
2849
1
May 24
3721