From 19091c5c59f8a9957e9907c771d8868da8d735f3 Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Fri, 7 Dec 2012 14:55:55 +0530 Subject: [PATCH] [IMP] Name changed in context. bzr revid: bth@tinyerp.com-20121207092555-g4e29bgy3ac0cexp --- addons/sale/sale.py | 2 +- addons/sale/wizard/sale_make_invoice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index ccd53c47b25..0c9499ed558 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -489,7 +489,7 @@ class sale_order(osv.osv): # If date was specified, use it as date invoiced, usefull when invoices are generated this month and put the # last day of the last month as invoice date if date_inv: - context['date_inv'] = date_inv + context['date_invoice'] = date_inv for o in self.browse(cr, uid, ids, context=context): currency_id = o.pricelist_id.currency_id.id if (o.partner_id.id in partner_currency) and (partner_currency[o.partner_id.id] <> currency_id): diff --git a/addons/sale/wizard/sale_make_invoice.py b/addons/sale/wizard/sale_make_invoice.py index eb54d447013..d19bbd65331 100644 --- a/addons/sale/wizard/sale_make_invoice.py +++ b/addons/sale/wizard/sale_make_invoice.py @@ -32,7 +32,7 @@ class sale_make_invoice(osv.osv_memory): } _defaults = { 'grouped': False, - 'invoice_date': lambda *a:datetime.now().strftime('%Y-%m-%d %H:%M:%S') + 'invoice_date': lambda *a:datetime.now().strftime('%Y-%m-%d') } def view_init(self, cr, uid, fields_list, context=None):