From 07cf4d58367dfa77e20c8fb5e0ef6c61ef6ea662 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 28 May 2013 15:09:06 +0200 Subject: [PATCH 1/2] [FIX] Spelling error and missing call to _() bzr revid: stefan@therp.nl-20130528130906-ciyf3thaw579pqvu --- addons/account_payment/wizard/account_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index f4d695a05d1..30a18aa4424 100644 --- a/addons/account_payment/wizard/account_payment_order.py +++ b/addons/account_payment/wizard/account_payment_order.py @@ -108,7 +108,7 @@ class payment_order_create(osv.osv_memory): context.update({'line_ids': line_ids}) model_data_ids = mod_obj.search(cr, uid,[('model', '=', 'ir.ui.view'), ('name', '=', 'view_create_payment_order_lines')], context=context) resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] - return {'name': ('Entrie Lines'), + return {'name': _('Entry Lines'), 'context': context, 'view_type': 'form', 'view_mode': 'form', From 2ed4144abe855e813ad47b34b19ad12ddf92d299 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 28 May 2013 17:23:03 +0200 Subject: [PATCH 2/2] [FIX] Actually import gettext function bzr revid: stefan@therp.nl-20130528152303-20c281snp5o3bkfq --- addons/account_payment/wizard/account_payment_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index 30a18aa4424..49650b47dc3 100644 --- a/addons/account_payment/wizard/account_payment_order.py +++ b/addons/account_payment/wizard/account_payment_order.py @@ -23,6 +23,7 @@ import time from lxml import etree from openerp.osv import fields, osv +from openerp.tools.translate import _ class payment_order_create(osv.osv_memory): """