projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2468ab8
)
[FIX] convert: after upgrade module, got error to parse menu
author
Harry (OpenERP)
<hmo@tinyerp.com>
Mon, 30 Aug 2010 14:05:08 +0000
(19:35 +0530)
committer
Harry (OpenERP)
<hmo@tinyerp.com>
Mon, 30 Aug 2010 14:05:08 +0000
(19:35 +0530)
bzr revid: hmo@tinyerp.com-
20100830140508
-8mbnjtg5c970j3dt
bin/tools/convert.py
patch
|
blob
|
history
diff --git
a/bin/tools/convert.py
b/bin/tools/convert.py
index
6bd9228
..
a90de10
100644
(file)
--- a/
bin/tools/convert.py
+++ b/
bin/tools/convert.py
@@
-799,7
+799,9
@@
form: module.record_id""" % (xml_id,)
def id_get(self, cr, model, id_str):
if id_str in self.idref:
return self.idref[id_str]
- return self.model_id_get(cr, model, id_str)[1]
+ res = self.model_id_get(cr, model, id_str)
+ if res and len(res)>1: res = res[1]
+ return res
def model_id_get(self, cr, model, id_str):
model_data_obj = self.pool.get('ir.model.data')