Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2381 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

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

Avatar
Zrušit

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 Odpovědi Zobrazení Aktivita
1
lis 22
1970
2
čvc 25
4031
1
lis 22
3245
1
bře 22
2618
1
kvě 24
3311