fix(certificates): search view — remove group string attr, fix date filter syntax

This commit is contained in:
gsinghpal
2026-04-12 19:46:20 -04:00
parent 54540d5b1e
commit 24656cc02b

View File

@@ -156,11 +156,11 @@
domain="[('state', '=', 'voided')]"/> domain="[('state', '=', 'voided')]"/>
<separator/> <separator/>
<filter name="filter_this_week" string="This Week" <filter name="filter_this_week" string="This Week"
domain="[('issue_date', '>=', (context_today() - datetime.timedelta(weeks=1)).strftime('%Y-%m-%d'))]"/> domain="[('issue_date', '>=', (context_today() - relativedelta(weeks=1)).strftime('%Y-%m-%d'))]"/>
<filter name="filter_this_month" string="This Month" <filter name="filter_this_month" string="This Month"
domain="[('issue_date', '>=', time.strftime('%Y-%m-01'))]"/> domain="[('issue_date', '>=', context_today().strftime('%Y-%m-01'))]"/>
<separator/> <separator/>
<group expand="1" string="Group By"> <group>
<filter name="group_customer" string="Customer" <filter name="group_customer" string="Customer"
context="{'group_by': 'partner_id'}"/> context="{'group_by': 'partner_id'}"/>
<filter name="group_type" string="Type" <filter name="group_type" string="Type"