From bad47f5b9934ab4db1b0b88b9b8754fbb01b20a8 Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 29 Jun 2007 06:58:43 +0000 Subject: [PATCH] kernel: fix update menuitem to use the xml_id bzr revid: ced-fce409581daeb3add3d5cf1f9975b6b64e805235 --- bin/tools/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index 6295ff99513..5bd4a98af83 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -312,7 +312,7 @@ class xml_import(object): a_type = rec.getAttribute('type').encode('utf8') or 'act_window' a_id = self.id_get(cr, 'ir.actions.%s' % a_type, a_action) action = "ir.actions.%s,%d" % (a_type, a_id) - self.pool.get('ir.model.data').ir_set(cr, self.uid, 'action', 'tree_but_open', 'Menuitem', [('ir.ui.menu', int(pid))], action, True, True) + self.pool.get('ir.model.data').ir_set(cr, self.uid, 'action', 'tree_but_open', 'Menuitem', [('ir.ui.menu', int(pid))], action, True, True, xml_id=rec_id) return ('ir.ui.menu', pid) def _tag_record(self, cr, rec, data_node=None):