WE2BS / openerp-rent

This OpenERP6 module manages the leasing of products to partners.
http://doc.we2bs.com/openerp-rent/
GNU General Public License v3.0
17 stars 10 forks source link

NameError: global name 'lines_data' is not defined (Line 195, on_generate_invoices_clicked) #44

Closed jeffisnotdead closed 12 years ago

jeffisnotdead commented 12 years ago

Automatic bug report :

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

Platform: Linux-2.6.35-32-generic-i686-with-Ubuntu-10.10-maverick Python Version: 2.6.6