Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2382 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hey Abdul Razak,

Find code in Comment 

Hope this answer helps you.
Thanks

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
1970
2
lip 25
4031
1
lis 22
3246
1
mar 22
2618
1
maj 24
3312