[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
This commit is contained in:
parent
fd73a9b5a5
commit
6de75adc3e
|
@ -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'],
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue