[FIX] An analytic journal is not mandatory on a financial journal

lp bug: https://launchpad.net/bugs/309344 fixed

bzr revid: stephane@tinyerp.com-20081218143537-u4bl6w0p291q4t85
This commit is contained in:
Stephane Wirtel 2008-12-18 15:35:37 +01:00
parent 1c4534fa75
commit 6875763f60
1 changed files with 2 additions and 2 deletions

View File

@ -857,8 +857,8 @@ class account_move_line(osv.osv):
'journal_id': journal.analytic_journal_id.id,
'ref': vals['ref'],
})]
else:
raise osv.except_osv(_('No analytic journal !'), _('Please set an analytic journal on this financial journal !'))
#else:
# raise osv.except_osv(_('No analytic journal !'), _('Please set an analytic journal on this financial journal !'))
#if not 'currency_id' in vals:
# vals['currency_id'] = account.company_id.currency_id.id