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

Exception when confirming RentOrder #17

Open adambridger opened 12 years ago

adambridger commented 12 years ago

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.

thibautd commented 12 years ago

Hi,

Sorry for answering so late. This is very strange because the bug occurs in a Python library. Are you using psyco or something like this ?

JeffreyDD commented 12 years ago

Same issue here, same steps, same result. Running OpenERP 6.0.4 on Ubuntu 12.04 with python from the Ubuntu repos (Python 2.7.3), nothing fancy. This bug currently makes the addons useless for me =( If you need any more info, let me know ;)

yustas14 commented 12 years ago

Same issue: Ubuntu 12.04 LTS, 6.04, 2.7.x ....

philippin06 commented 11 years ago

same issue: ubuntu 12.04 LTS, openerp 6.0.3, python 2.7.x

Fedoro commented 11 years ago

Same issue, OpenERP v6.1, Fedora 18 x86_64, Python 2.7.3-13

If you want to solve it, comment the lines of the inspect.py file (/usr/lib64/python2.7/inspect.py, line 528 and 529) and it'll work.

It's not the best way, but if you realy need the module it's something.

Regards.