Skip to content
Snippets Groups Projects
Commit 0fd1a8ce authored by Romain Derie's avatar Romain Derie
Browse files

[FIX] website_sale: restore date filters

Those were removed with f9874b2b and restored in 14.0 (master at that point) with cc6000ab.

This commit restores the missing filters for the context filters to work on
the view used in stable.
parent b31abe06
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment