Amit Bhavsar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1026434-amb into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1026434 in OpenERP Addons: "[trunk/6.1] Syntax error in 
addons/account/wizard/account_move_journal.py"
  https://bugs.launchpad.net/openobject-addons/+bug/1026434

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1026434-amb/+merge/115664

Hello,

Fixes the Syntax problem, I have improve the code as : period = 
period_pool.browse(cr, uid, [period_id], context=None)[0]['name']


Thanks!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1026434-amb/+merge/115664
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1026434-amb.
=== modified file 'account/wizard/account_move_journal.py'
--- account/wizard/account_move_journal.py	2012-07-18 10:16:26 +0000
+++ account/wizard/account_move_journal.py	2012-07-19 08:53:21 +0000
@@ -99,7 +99,7 @@
     
             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=None)[0]['name']
                 period_string = _("Period: %s") % tools.ustr(period)
     
             open_string = _("Open")

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to