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 'line' is not defined (Line 647, get_invoice_at) #33

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 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 141, in get_invoice_lines_data
    line_data.unit_price = line.real_unit_price * line.coeff

NameError: global name 'line' is not defined

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