[FIX] project: remove duplicate filter in rating.rating search view
Before this commit, the `Last 30 days` filter is duplicate in the search view of rating.rating in `Reporting > Customer Ratings` menu of Project app. This commit removes the duplicate one. Part of task-2671848 closes odoo/odoo#80506 X-original-commit: 492ab65c2dad6ce65e27e266777f13a8ba1f8acb Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
@@ -117,12 +117,6 @@
|
||||
<attribute name="string">Task</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//filter[@name='responsible']" position="replace"></xpath>
|
||||
<xpath expr="/search" position="inside">
|
||||
<filter string="Last 30 Days" name="rating_last_30_days" domain="[
|
||||
('write_date', '>=', (datetime.datetime.combine(context_today() + relativedelta(days=-30), datetime.time(0,0,0)).to_utc()).strftime('%Y-%m-%d %H:%M:%S'))]"
|
||||
/>
|
||||
<separator/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -238,7 +232,7 @@
|
||||
</p>
|
||||
</field>
|
||||
<field name="context">{
|
||||
'search_default_rating_last_30_days': 1,
|
||||
'search_default_last_month': 1,
|
||||
'graph_groupbys': ['rated_partner_id'],
|
||||
}</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user