Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2384 Tampilan

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

Avatar
Buang
Jawaban Terbai

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

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

Avatar
Buang

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

Post Terkait Replies Tampilan Aktivitas
1
Nov 22
1971
2
Jul 25
4040
1
Nov 22
3250
1
Mar 22
2631
1
Mei 24
3345