From 1e8f8eabec2568a8e7ee8a297e126a885349da71 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 12 Dec 2014 18:07:48 +0100 Subject: [PATCH] [IMP] procurement, stock: make procurement.rule.name and stock.location.route.name translatable Closes #4222 --- addons/procurement/procurement.py | 2 +- addons/stock/stock.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index 085d620cc87..099d0a09194 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -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"), diff --git a/addons/stock/stock.py b/addons/stock/stock.py index da6f4ab78e7..ef0e7a755bc 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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."),