[IMP] Name changed in context.
bzr revid: bth@tinyerp.com-20121207092555-g4e29bgy3ac0cexp
This commit is contained in:
parent
5580c18958
commit
19091c5c59
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue