[FIX] regenerate action's views key if it is empty, not just if it's absent
lp bug: https://launchpad.net/bugs/903062 fixed bzr revid: xmo@openerp.com-20111212101121-ljjmq6phxgse0qjq
This commit is contained in:
parent
89ee71e742
commit
35895bde21
|
@ -604,7 +604,7 @@ def fix_view_modes(action):
|
|||
:param dict action: an action descriptor
|
||||
:returns: nothing, the action is modified in place
|
||||
"""
|
||||
if 'views' not in action:
|
||||
if not action.get('views'):
|
||||
generate_views(action)
|
||||
|
||||
id_form = None
|
||||
|
|
Loading…
Reference in New Issue