[IMP] Name changed in context.

bzr revid: bth@tinyerp.com-20121207092555-g4e29bgy3ac0cexp
This commit is contained in:
Bhumi Thakkar (Open ERP) 2012-12-07 14:55:55 +05:30
parent 5580c18958
commit 19091c5c59
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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):