Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/addons/openlib/github.py", line 68, in wrapper
result = func(*args, **kwargs)
File "/usr/share/pyshared/openerp-server/addons/rent/rent.py", line 195, in on_generate_invoices_clicked
self.run_cron_make_invoices(cr, uid, context)
File "/usr/share/pyshared/openerp-server/addons/openlib/github.py", line 68, in wrapper
result = func(*args, **kwargs)
File "/usr/share/pyshared/openerp-server/addons/rent/rent.py", line 944, in run_cron_make_invoices
invoice_id = self.get_invoice_at(cr, uid, order, invoice_data)
File "/usr/share/pyshared/openerp-server/addons/openlib/github.py", line 68, in wrapper
result = func(*args, **kwargs)
File "/usr/share/pyshared/openerp-server/addons/rent/rent.py", line 647, in get_invoice_at
data['price_factor'], first_invoice=(data['invoice_number'] == 1))
File "/usr/share/pyshared/openerp-server/addons/openlib/github.py", line 68, in wrapper
result = func(*args, **kwargs)
File "/usr/share/pyshared/openerp-server/addons/rent_rtz/rent.py", line 140, in get_invoice_lines_data
lines_data['unit_price'] = lines[index].real_unit_price * lines[index].coeff
NameError: global name 'lines_data' is not defined
Automatic bug report :
Platform: Linux-2.6.35-32-generic-i686-with-Ubuntu-10.10-maverick Python Version: 2.6.6