Merge lp:~openerp-dev/openobject-addons/7.0-opw-586535-ado into lp:openobject-addons/7.0

Proposed by Amit Dodiya (OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 9210
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-586535-ado
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
account/wizard/account_fiscalyear_close.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-586535-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Xavier ALT Pending
Review via email: mp+149039@code.launchpad.net

Description of the change

Hello,

[FIX] account: make the string translatable

Steps:
1). Install account and language other than english
2). Now open "Generate Opening Entries" wizard the string of report_name fields is not translated.

Regards,
Amit

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/wizard/account_fiscalyear_close.py'
2--- account/wizard/account_fiscalyear_close.py 2012-12-06 14:56:32 +0000
3+++ account/wizard/account_fiscalyear_close.py 2013-02-18 12:40:41 +0000
4@@ -38,7 +38,7 @@
5 'report_name': fields.char('Name of new entries',size=64, required=True, help="Give name of the new entries"),
6 }
7 _defaults = {
8- 'report_name': _('End of Fiscal Year Entry'),
9+ 'report_name': lambda self, cr, uid, context: _('End of Fiscal Year Entry'),
10 }
11
12 def data_save(self, cr, uid, ids, context=None):