[FIX] if view_id provided in account.move.line, do not compute a specific view

bzr revid: fp@tinyerp.com-20121108113423-5c3ypdqsmphq1qgd
This commit is contained in:
Fabien Pinckaers
2012-11-08 12:34:23 +01:00
parent 7ec48c2d26
commit f851ad9253
+1 -1
View File
@@ -975,7 +975,7 @@ class account_move_line(osv.osv):
if context is None:
context = {}
result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context=context, toolbar=toolbar, submenu=submenu)
if view_type != 'tree':
if (view_type != 'tree') or view_id:
#Remove the toolbar from the form view
if view_type == 'form':
if result.get('toolbar', False):