[IMP] mrp_operations : Removed all filters related to a date field and added the related date field in the search view.

bzr revid: mdi@tinyerp.com-20120522101607-8hsiqjagdvepocnk
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-05-22 15:46:07 +05:30
parent 601802a62f
commit 3f148674c2
@@ -47,26 +47,13 @@
<field name="arch" type="xml">
<search string="Search">
<group>
<filter icon="terp-go-year" string="Year"
name="year"
domain="[('year','=',time.strftime('%%Y'))]"
help="Work orders made during current year"/>
<separator orientation="vertical"/>
<filter icon="terp-go-month" string="Month"
name="month"
domain="[('month','=',time.strftime('%%m'))]"
help="Work orders made during current month"/>
<filter icon="terp-go-week"
string="Month -1"
domain="[('month','=',(datetime.date.today() - datetime.timedelta(365/12)).strftime('%%m'))]"
help="Work orders during last month"/>
<separator orientation="vertical"/>
<filter string="Current" icon="terp-check" domain="[('state','not in',('draft','cancel','done'))]"/>
<filter icon="terp-check" string="Started" domain="[('state','=','startworking')]"/>
<filter icon="terp-camera_test" string="Done" domain="[('state','=','done')]"/>
<separator orientation="vertical"/>
<field name="product_id" />
<field name="workcenter_id"/>
<field name="date"/>
</group>
<newline/>
<group expand="1" string="Group By...">