remove print

bzr revid: patelamit2003@gmail.com-20081023105525-kywym1k4gn6de04o
This commit is contained in:
apa-tiny 2008-10-23 16:25:25 +05:30
parent 4fa700af44
commit f5de24bec6
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ def _check_date(self, cr, uid, data, context):
raise wizard.except_wizard('UserError','Date not in a defined fiscal year')
def _check_state(self, cr, uid, data, context):
print"data",data
my_ids=data['ids']
if data['model']!='account.account':
my_ids=[data['form']['Account_list']]
@ -155,7 +155,7 @@ def _check_state(self, cr, uid, data, context):
for child in child_ids :
child_account = pooler.get_pool(cr.dbname).get('account.account').browse(cr, uid, child)
res = pooler.get_pool(cr.dbname).get('account.move.line').search(cr, uid,[('account_id','=',child_account.id)])
print"res",res
if not len(res):
raise wizard.except_wizard('UserError',"Make sure the account you select has children accounts.")