exception in orm.py if res2[record['id']] is False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I fixed this some time ago and no longer have the traceback.
The following change fixes the problem:
=== modified file 'bin/osv/orm.py'
--- bin/osv/orm.py 2010-08-12 20:08:48 +0000
+++ bin/osv/orm.py 2010-08-26 04:28:07 +0000
@@ -2947,7 +2947,10 @@
- record[pos] = res2[record[
+ if res2[record['id']]:
+ record[pos] = res2[record[
+ else:
+ record[pos] = []
else:
Applies to revision 2572, trunk
Thanks Jim,
It has been fixed by revision <email address hidden>.