[FIX] An analytic journal is not mandatory on a financial journal
authorStephane Wirtel <stephane@tinyerp.com>
Thu, 18 Dec 2008 14:35:37 +0000 (15:35 +0100)
committerStephane Wirtel <stephane@tinyerp.com>
Thu, 18 Dec 2008 14:35:37 +0000 (15:35 +0100)
lp bug: https://launchpad.net/bugs/309344 fixed

bzr revid: stephane@tinyerp.com-20081218143537-u4bl6w0p291q4t85

addons/account/account_move_line.py

index a805f83..233eaf8 100644 (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