Consider that reference fields may be of tuple type in menu.

review699002
This commit is contained in:
Albert Cervera i Areny committed 2013-03-05 00:15:03 +01:00
1 parent d3466b21c9
commit 511e78e6fa
1 file changed
+4 -1
+4 -1
View File
@@ -220,7 +220,10 @@ class UIMenu(ModelSQL, ModelView):
if action_keywords:
with Transaction().set_context(_timestamp=False):
ActionKeyword.delete(action_keywords)
action_type, action_id = value.split(',')
if isinstance(value, basestring):
action_type, action_id = value.split(',')
else:
action_type, action_id = value
if not int(action_id):
return
Action = pool.get(action_type)