[FIX] procurement.rule._get_action() needs to be translatable
bzr revid: qdp-launchpad@openerp.com-20140507171431-jtyz901xmej6elmp
This commit is contained in:
parent
0d96d46138
commit
661c109189
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue