[FIX] Account: account move line

bzr revid: mra@mra-laptop-20100816070633-6i2q0tbd7r6q9yk3
This commit is contained in:
Mustufa Rangwala 2010-08-16 12:36:33 +05:30
parent 227503e001
commit 7b409568c1
1 changed files with 17 additions and 16 deletions

View File

@ -848,7 +848,8 @@ class account_move_line(osv.osv):
if view_type != 'tree':
#Remove the toolbar from the form view
if view_type == 'form':
result['toolbar']['action'] = []
if result.get('toolbar', False):
result['toolbar']['action'] = []
#Restrict the list of journal view in search view
if view_type == 'search':