From 6de75adc3ea41f010ab668b351a0b2288bcd98d1 Mon Sep 17 00:00:00 2001 From: "PSI(OpenERP)" <> Date: Tue, 7 Dec 2010 16:45:19 +0530 Subject: [PATCH] [FIX] hr_timesheet_invoice: Wrong date format in Invoice on analytic entries lp bug: https://launchpad.net/bugs/587940 fixed bzr revid: mra@mra-laptop-20101207111519-76v7ogqbr7k28w1u --- .../wizard/hr_timesheet_final_invoice_create.py | 3 ++- .../hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py index 4878a6634b2..8f1ef4ef261 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py @@ -23,6 +23,7 @@ import time from osv import osv, fields from tools.translate import _ + # # Create an final invoice based on selected timesheet lines # @@ -79,7 +80,7 @@ class final_invoice_create(osv.osv_memory): date_due = pterm_list[-1] curr_invoice = { - 'name': time.strftime('%D')+' - '+account.name, + 'name': time.strftime('%d/%m/%Y')+' - '+account.name, 'partner_id': account.partner_id.id, 'address_contact_id': res_partner_obj.address_get(cr, uid, [account.partner_id.id], adr_pref=['contact'])['contact'], 'address_invoice_id': res_partner_obj.address_get(cr, uid, [account.partner_id.id], adr_pref=['invoice'])['invoice'], diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py index 075a68907ae..f11f1331415 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py @@ -92,7 +92,7 @@ class hr_timesheet_invoice_create(osv.osv_memory): date_due = pterm_list[-1] curr_invoice = { - 'name': time.strftime('%D')+' - '+account.name, + 'name': time.strftime('%d/%m/%Y')+' - '+account.name, 'partner_id': account.partner_id.id, 'address_contact_id': res_partner_obj.address_get(cr, uid, [account.partner_id.id], adr_pref=['contact'])['contact'],