[FIX] website_sale: restore date filters
Those were removed withf9874b2b04and restored in 14.0 (master at that point) withcc6000abfa. 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:
@@ -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','>', (context_today() - datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"/>
|
||||
<filter string="Last Month" invisible="1" name="month" domain="[('date_order','>', (context_today() - datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"/>
|
||||
<filter string="Last Year" invisible="1" name="year" domain="[('date_order','>', (context_today() - datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user