From 3a1c5f23a48563fde0caf761db91b27c4c7d222b Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 18 May 2010 16:58:26 +0530 Subject: [PATCH] [FIX] event: invoice creation from registrations bzr revid: jvo@tinyerp.com-20100518112826-3sjz8lgljwv15z2a --- addons/event/wizard/event_make_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/event/wizard/event_make_invoice.py b/addons/event/wizard/event_make_invoice.py index 105f27cf3fe..589818f8077 100644 --- a/addons/event/wizard/event_make_invoice.py +++ b/addons/event/wizard/event_make_invoice.py @@ -82,8 +82,9 @@ class event_make_invoice(osv.osv_memory): tax_ids.append(tax.id) vals = value['value'] + c_name = reg.contact_id and ('-' + self.pool.get('res.partner.contact').name_get(cr, uid, [reg.contact_id.id])[0][1]) or '' vals.update({ - 'name': reg.invoice_label + '-' + reg.name, + 'name': reg.invoice_label + '-' + c_name, 'price_unit': reg.unit_price, 'quantity': reg.nb_register, 'product_id':reg.event_id.product_id.id,