[FIX] website_sale: restore date filters

Those were removed with f9874b2b04 and restored in 14.0 (master at that point) with cc6000abfa.

This commit restores the missing filters for the context filters to work on
the view used in stable.

X-original-commit: 0fd1a8ce30ff83030577b95b2ac10669425671e9
This commit is contained in:
Romain Derie
2020-11-18 12:55:16 +00:00
parent 0bce015cb4
commit aebe84555f
@@ -15,6 +15,10 @@
<separator/>
<filter string="From Website" name="from_website" domain="[('website_id', '!=', False)]"/>
<separator/>
<!-- Dashboard filter - used by context -->
<filter string="Last Week" invisible="1" name="week" domain="[('date_order','&gt;', (context_today() - datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"/>
<filter string="Last Month" invisible="1" name="month" domain="[('date_order','&gt;', (context_today() - datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"/>
<filter string="Last Year" invisible="1" name="year" domain="[('date_order','&gt;', (context_today() - datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"/>
</xpath>
</field>
</record>