[imp] improved code working without demo data too
bzr revid: han@tinyerp.com-20110908083824-97jl61vtyq2te0ko
This commit is contained in:
@@ -26,7 +26,10 @@ from tools.translate import _
|
||||
class stock_invoice_onshipping(osv.osv_memory):
|
||||
|
||||
def _get_journal(self, cr, uid, context=None):
|
||||
return self._get_journal_id(cr, uid, context=context)[0][0] or False
|
||||
res = self._get_journal_id(cr, uid, context=context)
|
||||
if res:
|
||||
return res[0]
|
||||
return False
|
||||
|
||||
def _get_journal_id(self, cr, uid, context=None):
|
||||
if context is None:
|
||||
|
||||
Reference in New Issue
Block a user