[IMP] account_voucher : Removed all filters related to a date field and added the...
authorDivyesh Makwana (Open ERP) <mdi@tinyerp.com>
Tue, 22 May 2012 05:48:29 +0000 (11:18 +0530)
committerDivyesh Makwana (Open ERP) <mdi@tinyerp.com>
Tue, 22 May 2012 05:48:29 +0000 (11:18 +0530)
bzr revid: mdi@tinyerp.com-20120522054829-dwfg64agv8veh73s

addons/account_voucher/report/account_voucher_sales_receipt_view.xml

index 561dcf7..726f331 100644 (file)
         <field name="arch" type="xml">
             <search string="Sales Receipt Analysis">
               <group>
-                    <filter icon="terp-go-year" string="Year" 
-                            name="year"
-                            domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]"
-                            help="year"/>
-                    <separator orientation="vertical"/>
-                    <filter icon="terp-go-month" string="Month"
-                            name="month"
-                            domain="[('date','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
-                            help="current month"/>
-                    <filter icon="terp-go-month" string="Month-1"
-                            domain="[('date','&lt;=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date','&gt;=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
-                            help="last month"/>
-                    <separator orientation="vertical"/>
                     <filter string="Draft"
                            icon="terp-document-new"
                            domain="[('state','=','draft')]"
@@ -85,6 +72,7 @@
                     <field name="account_id"/>
                     <separator orientation="vertical"/>
                     <field name="date_due"/>
+                    <field name="date"/>
                     <separator orientation="vertical" groups="base.group_multi_company"/>
                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                 </group>