bzr revid: mra@mra-laptop-20100830113800-8x9i7isd762mpwht
This commit is contained in:
Mustufa Rangwala 2010-08-30 17:08:00 +05:30
parent 18bd5278ee
commit c0186f6a6a
1 changed files with 4 additions and 4 deletions

View File

@ -1167,7 +1167,7 @@ class account_move(osv.osv):
parent_right = ref_chart_account.parent_right
result = True
for line in lines[1:]:
if not(line.account_id.parent_left > parent_left and line.account_id.parent_left < parent_right):
if not (line.account_id.parent_left > parent_left and line.account_id.parent_left < parent_right):
raise osv.except_osv(_('Error !'), _('You cannot validate a move unless accounts in its entry lines are in same Chart Of Accounts !'))
return self.post(cursor, user, ids, context=context)