[IMP] stock: finish renaming of stock.move.date_planned to stock.move.date
authorOlivier Dony <odo@openerp.com>
Tue, 28 Sep 2010 12:29:04 +0000 (14:29 +0200)
committerOlivier Dony <odo@openerp.com>
Tue, 28 Sep 2010 12:29:04 +0000 (14:29 +0200)
bzr revid: odo@openerp.com-20100928122904-refdktl1p0ks6qpc

addons/stock/report/report_stock_move_view.xml

index 0ee03fe..440c354 100644 (file)
             <search string="Moves Analysis">
                 <group>
                 <filter icon="terp-go-year" string="  Year  "
-                domain="[('date_planned','&lt;=', time.strftime('%%Y-%%m-%%d')),('date_planned','&gt;=',time.strftime('%%Y-01-01'))]"
+                domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]"
                 help="Current year"/>
                 <filter icon="terp-go-month" string="   Month   "
                 name="month"
-                domain="[('date_planned','&lt;=', time.strftime('%%Y-%%m-%%d')),('date_planned','&gt;=',time.strftime('%%Y-%%m-01'))]"
+                domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-%%m-01'))]"
                 help="Current month"/>
                 <filter icon="terp-go-month"
                  string="    Month-1    "
                  separator="1"
-                 domain="[('date_planned','&lt;=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date_planned','&gt;',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
+                 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"/>                    
                 <separator orientation="vertical"/>
                 <filter string="Done"
@@ -96,7 +96,7 @@
                     <separator orientation="vertical"/>
                     <field name="company_id" groups="base.group_multi_company"/>
                     <newline/>
-                    <field name="date_planned"/>
+                    <field name="date"/>
                 </group>
                 <newline/>
                 <group expand="1" string="Group By...">
                     <filter string="Company" name="group_state" icon="terp-stock_effects-object-colorize" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                     <separator orientation="vertical"/>
                     <filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Day Planned"/>
-                    <filter string="Month" icon="terp-go-month" context="{'group_by':'date_planned'}" help="Month Planned"/>
+                    <filter string="Month" icon="terp-go-month" context="{'group_by':'date'}" help="Month Planned"/>
                     <filter string="Year" icon="terp-go-year" context="{'group_by':'year'}"  help="Year Planned"/>
                 </group>
                 <newline/>