[MERGE] trunk-bug-1026434-amb: add missing context to browse and read
lp bug: https://launchpad.net/bugs/1026434 fixed bzr revid: abo@openerp.com-20120917110744-4g2j0zr9c6uv3ty1
This commit is contained in:
commit
84094e0c39
|
@ -92,14 +92,14 @@ class account_move_journal(osv.osv_memory):
|
|||
|
||||
journal = False
|
||||
if journal_id:
|
||||
journal = journal_pool.read(cr, uid, [journal_id], ['name'])[0]['name']
|
||||
journal = journal_pool.read(cr, uid, journal_id, ['name'], context=context).name
|
||||
journal_string = _("Journal: %s") % tools.ustr(journal)
|
||||
else:
|
||||
journal_string = _("Journal: All")
|
||||
|
||||
period = False
|
||||
if period_id:
|
||||
period = period_pool.browse(cr, uid, [period_id], ['name'])[0]['name']
|
||||
period = period_pool.browse(cr, uid, period_id, context=context).name
|
||||
period_string = _("Period: %s") % tools.ustr(period)
|
||||
|
||||
open_string = _("Open")
|
||||
|
|
Loading…
Reference in New Issue