[ADD] stock: Add the filter on last month in Moves Analysis report

bzr revid: sbh@tinyerp.com-20100924081153-eahxyf9hpsptclsb
This commit is contained in:
sbh (Open ERP)
2010-09-24 13:41:53 +05:30
parent 0030c2cf8c
commit a1863560b1
@@ -57,6 +57,11 @@
<field name="arch" type="xml">
<search string="Moves Analysis">
<group>
<filter icon="terp-go-month"
string="Last Month"
separator="1"
domain="[('date','&lt;=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date','&gt;',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
help="Last month"/>
<filter icon="terp-go-month"
name="month"
string="This Month"