From 114843c9f222e0af7e59cc356ef8d328f9bdd5ea Mon Sep 17 00:00:00 2001 From: Jigar Amin Date: Wed, 13 Oct 2010 18:43:43 +0530 Subject: [PATCH] [IMP] filter on Current Month in report view in addons bzr revid: jam@tinyerp.com-20101013131343-gkqnw9awzt341jy9 --- addons/crm/report/crm_lead_report_view.xml | 2 +- addons/crm/report/crm_phonecall_report_view.xml | 2 +- addons/crm_claim/report/crm_claim_report_view.xml | 2 +- .../report/crm_fundraising_report_view.xml | 2 +- .../report/crm_helpdesk_report_view.xml | 2 +- .../report/hr_evaluation_report_view.xml | 4 +++- addons/hr_expense/hr_expense_view.xml | 2 +- .../hr_expense/report/hr_expense_report_view.xml | 2 +- addons/hr_holidays/hr_holidays_view.xml | 2 +- .../hr_holidays/report/available_holidays_view.xml | 4 +++- .../hr_holidays/report/hr_holidays_report_view.xml | 4 +++- .../report/hr_timesheet_invoice_report_view.xml | 2 +- .../report/hr_timesheet_report_view.xml | 2 +- addons/idea/report/report_vote_view.xml | 2 +- addons/lunch/lunch_view.xml | 6 +++--- addons/mrp/report/mrp_production_order_view.xml | 4 ++-- .../report/report_cash_register_view.xml | 4 ++-- .../point_of_sale/report/report_pos_order_view.xml | 4 ++-- addons/project/report/project_report_view.xml | 2 +- .../report/project_issue_report_view.xml | 2 +- addons/purchase/report/purchase_report_view.xml | 14 +++++++------- addons/sale/report/sale_report_view.xml | 2 +- addons/stock/report/report_stock_move_view.xml | 2 +- 23 files changed, 40 insertions(+), 34 deletions(-) diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml index f93dde0560b..6ef227238b9 100644 --- a/addons/crm/report/crm_lead_report_view.xml +++ b/addons/crm/report/crm_lead_report_view.xml @@ -75,7 +75,7 @@ domain="[('create_date','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',time.strftime('%%Y-01-01'))]" help="Leads/Opportunities created in current year"/> - + diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml index 5d22113272c..3d92a76a3c3 100644 --- a/addons/hr_expense/hr_expense_view.xml +++ b/addons/hr_expense/hr_expense_view.xml @@ -139,7 +139,7 @@ help="Expenses to Invoice"/> + domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"/> diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml index 2d7f3092c98..70b8625d7b6 100644 --- a/addons/hr_expense/report/hr_expense_report_view.xml +++ b/addons/hr_expense/report/hr_expense_report_view.xml @@ -58,7 +58,7 @@ help="Expenses during current year"/> + domain="[('date_from','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date_from','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"/> - + diff --git a/addons/hr_holidays/report/hr_holidays_report_view.xml b/addons/hr_holidays/report/hr_holidays_report_view.xml index 9c61f074677..e59cf852366 100644 --- a/addons/hr_holidays/report/hr_holidays_report_view.xml +++ b/addons/hr_holidays/report/hr_holidays_report_view.xml @@ -48,7 +48,9 @@ - + diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml index 33b92d09241..6b436f4ef99 100644 --- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml +++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml @@ -52,7 +52,7 @@ help="Timesheet lines in this year"/> + name="month" + domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]" + help="Box amount in current month"/> 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 df0dfc877de..40e59e38f0b 100644 --- a/addons/point_of_sale/report/report_cash_register_view.xml +++ b/addons/point_of_sale/report/report_cash_register_view.xml @@ -31,12 +31,12 @@ domain="[('year','=',time.strftime('%%Y'))]" help="Cash Analysis created during this year"/> + name="month" + domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]" + help="Order in current month"/> + string=" Month-1 " + separator="1" + domain="[('date','<=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]" + help="Order in last month"/>