WE2BS/openerp-rent — Issue #17: Exception when confirming RentOrder
Author: adambridger
Created: 2012-02-01 10:54:47+00:00
State: open

Hi.

Thank you for your most useful module. Im having a problem though when confirming a RentalOrder.

[2012-01-26 20:22:38,641][test1] INFO:web-service:successful login from 'admin' using database 'test1'
[2012-01-26 20:23:08,213][test1] ERROR:openlib.github:An exception occured, it will be reported to github.
Traceback (most recent call last):
File "/opt/openerp/server/bin/addons/openlib/github.py", line 68, in wrapper
result = func(*args, **kwargs)
File "/opt/openerp/server/bin/addons/rent/rent.py", line 957, in check_period_and_unity
for order in self.filter(ids):
File "/opt/openerp/server/bin/addons/openlib/orm.py", line 313, in filter
cr, uid, context = self._get_cr_uid_context()
File "/opt/openerp/server/bin/addons/openlib/orm.py", line 213, in _get_cr_uid_context
for frame_no, data in enumerate(getouterframes(currentframe())):
File "/usr/lib/python2.7/inspect.py", line 1034, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/usr/lib/python2.7/inspect.py", line 1009, in getframeinfo
lines, lnum = findsource(frame)
File "/usr/lib/python2.7/inspect.py", line 530, in findsource
if not sourcefile and file[0] + file[-1] != '<>':
IndexError: string index out of range

Im running opener 6.0.3, on ubuntu10, python 2.7.

I configured a single product to be rental and created a RentalOrder with this product. All was well until i attempted to confirm the order.

thanks.