Consider that reference fields may be of tuple type in menu.
review699002
This commit is contained in:
1 parent
d3466b21c9
commit
511e78e6fa
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user