From 2081b75988f7709a77000b809e19922d9c490990 Mon Sep 17 00:00:00 2001 From: mtr Date: Tue, 16 Nov 2010 11:37:20 +0530 Subject: [PATCH] [FIX] Account_followup:'Follow-up Sending Date' now prints the date from wizard lp bug: https://launchpad.net/bugs/586706 fixed bzr revid: mtr@mtr-20101116060720-ttwsryr2nsgcykk8 --- addons/account_followup/report/account_followup_print.rml | 2 +- addons/account_followup/wizard/account_followup_print.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/account_followup/report/account_followup_print.rml b/addons/account_followup/report/account_followup_print.rml index fb0f93b4a38..08dae5a82bc 100644 --- a/addons/account_followup/report/account_followup_print.rml +++ b/addons/account_followup/report/account_followup_print.rml @@ -117,7 +117,7 @@ Document : Customer account statement - Date : [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] + Date : [[ formatLang(data['form']['date'],date=True) ]] Customer Ref : [[ o.ref or '' ]] diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 18c455ac07a..174061438f8 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -319,13 +319,12 @@ class account_followup_print_all(osv.osv_memory): "WHERE id=%s", (to_update[id]['level'], date, int(id),)) - + data.update({'date': context['date']}) datas = { 'ids': [], 'model': 'account_followup.followup', 'form': data } - return { 'type': 'ir.actions.report.xml', 'report_name': 'account_followup.followup.print',