[IMP] procurement, stock: make procurement.rule.name and stock.location.route.name translatable

Closes #4222
This commit is contained in:
Holger Brunn 2014-12-12 18:07:48 +01:00 committed by Nicolas Martinelli
parent 5f768ed5b3
commit 1e8f8eabec
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class procurement_rule(osv.osv):
return []
_columns = {
'name': fields.char('Name', required=True,
'name': fields.char('Name', required=True, translate=True,
help="This field will fill the packing origin and the name of its moves"),
'active': fields.boolean('Active', help="If unchecked, it will allow you to hide the rule without removing it."),
'group_propagation_option': fields.selection([('none', 'Leave Empty'), ('propagate', 'Propagate'), ('fixed', 'Fixed')], string="Propagation of Procurement Group"),

View File

@ -211,7 +211,7 @@ class stock_location_route(osv.osv):
_order = 'sequence'
_columns = {
'name': fields.char('Route Name', required=True),
'name': fields.char('Route Name', required=True, translate=True),
'sequence': fields.integer('Sequence'),
'pull_ids': fields.one2many('procurement.rule', 'route_id', 'Pull Rules', copy=True),
'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the route without removing it."),