[FIX] hr_holidays: traceback when group by allocation's description

The 'name' field (Description) has been removed from the 'group by' definition in the allocation search view
because this is useless to group by this field as each value will be different from the others.

closes odoo/odoo#46478

X-original-commit: 2f6abba160b5e2dac73ba2c56dcb139d10f20273
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Rémy Baranx (bar)
2020-02-27 18:58:28 +00:00
parent b0be65f211
commit e04cf0c6be
@@ -37,7 +37,6 @@
domain="[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))
]"/>
<group expand="0" string="Group By">
<filter name="group_name" string="Description" context="{'group_by':'name'}"/>
<filter name="group_employee" string="Employee" context="{'group_by':'employee_id'}"/>
<filter name="group_category" string="Category" context="{'group_by':'category_id'}"/>
<filter name="group_second_approver_id" string="Validator" context="{'group_by':'second_approver_id'}"/>