[FIX] procurement.rule._get_action() needs to be translatable

bzr revid: qdp-launchpad@openerp.com-20140507171431-jtyz901xmej6elmp
This commit is contained in:
Quentin (OpenERP) 2014-05-07 19:14:31 +02:00
parent 0d96d46138
commit 661c109189
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class procurement_rule(osv.osv):
_inherit = 'procurement.rule'
def _get_action(self, cr, uid, context=None):
return [('manufacture', 'Manufacture')] + super(procurement_rule, self)._get_action(cr, uid, context=context)
return [('manufacture', _('Manufacture'))] + super(procurement_rule, self)._get_action(cr, uid, context=context)
class procurement_order(osv.osv):

View File

@ -1121,7 +1121,7 @@ class procurement_rule(osv.osv):
_inherit = 'procurement.rule'
def _get_action(self, cr, uid, context=None):
return [('buy', 'Buy')] + super(procurement_rule, self)._get_action(cr, uid, context=context)
return [('buy', _('Buy'))] + super(procurement_rule, self)._get_action(cr, uid, context=context)
class procurement_order(osv.osv):

View File

@ -39,7 +39,7 @@ class procurement_rule(osv.osv):
def _get_action(self, cr, uid, context=None):
result = super(procurement_rule, self)._get_action(cr, uid, context=context)
return result + [('move', 'Move From Another Location')]
return result + [('move', _('Move From Another Location'))]
def _get_rules(self, cr, uid, ids, context=None):
res = []