Merge pull request #5314 from expsa/feature/purchase-request-search-view-20251110

feat: Add comprehensive search view for purchase.request model
This commit is contained in:
Mohamed Eltayar 2025-11-10 15:22:33 +03:00 committed by GitHub
commit 89e6e52914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -205,13 +205,11 @@
<separator/>
<!-- فلاتر زمنية -->
<filter string="Today" name="today"
domain="[('date','=',context_today().strftime('%Y-%m-%d'))]"/>
domain="[('date','=',context_today())]"/>
<filter string="This Week" name="this_week"
domain="[('date','&gt;=',((context_today()-datetime.timedelta(days=context_today().weekday())).strftime('%Y-%m-%d'))),
('date','&lt;=',((context_today()+datetime.timedelta(days=6-context_today().weekday())).strftime('%Y-%m-%d')))]"/>
domain="[('date','&gt;=',context_today() - datetime.timedelta(days=7))]"/>
<filter string="This Month" name="this_month"
domain="[('date','&gt;=',context_today().strftime('%Y-%m-01')),
('date','&lt;=',((context_today().replace(day=1)+datetime.timedelta(days=32)).replace(day=1)-datetime.timedelta(days=1)).strftime('%Y-%m-%d'))]"/>
domain="[('date','&gt;=',context_today() - datetime.timedelta(days=30))]"/>
<!-- تجميع منطقي -->
<group expand="0" string="Group By">