From a2e845565959a1b3ccc53bc0f0860e6cc2f2f11a Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Wed, 6 Oct 2010 17:11:03 +0530 Subject: [PATCH] [IMP] point_of_sale, mrp, auction: Domain on 'Month -1' button corrected for analysis reports. bzr revid: uco@tinyerp.com-20101006114103-34ld85qzsoqpd2ki --- addons/auction/report/report_auction_view.xml | 23 ++++++++++--------- .../mrp/report/mrp_production_order_view.xml | 2 +- .../report/report_cash_register_view.xml | 2 +- .../report/report_pos_order_view.xml | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/addons/auction/report/report_auction_view.xml b/addons/auction/report/report_auction_view.xml index 8153314e877..ec4f36ceb70 100644 --- a/addons/auction/report/report_auction_view.xml +++ b/addons/auction/report/report_auction_view.xml @@ -37,23 +37,24 @@ - - + + domain="[('month','=',time.strftime('%%m'))]" + help="Auction during current month."/> + domain="[('month','=',(datetime.date.today() - datetime.timedelta(365/12)).strftime('%%m'))]" + help="Auction during last month."/> @@ -74,7 +75,7 @@ - + form tree,graph - {'search_default_month':1} + {'search_default_month':1,'search_default_sold':1,'search_default_auction_date':1, 'group_by':[], 'group_by_no_leaf':1} diff --git a/addons/mrp/report/mrp_production_order_view.xml b/addons/mrp/report/mrp_production_order_view.xml index ea1f15bc3ea..24a2fb0057f 100644 --- a/addons/mrp/report/mrp_production_order_view.xml +++ b/addons/mrp/report/mrp_production_order_view.xml @@ -58,7 +58,7 @@ diff --git a/addons/point_of_sale/report/report_cash_register_view.xml b/addons/point_of_sale/report/report_cash_register_view.xml index fb498336fb5..df0dfc877de 100644 --- a/addons/point_of_sale/report/report_cash_register_view.xml +++ b/addons/point_of_sale/report/report_cash_register_view.xml @@ -36,7 +36,7 @@