[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:
Xavier Morel 2011-12-12 11:11:21 +01:00
parent 89ee71e742
commit 35895bde21
1 changed files with 1 additions and 1 deletions

View File

@ -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