From 80aaad1e55632fe91e00284a3e3e6a4888cddf02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levent=20Karaka=C5=9F?= Date: Sat, 10 Sep 2016 17:20:06 +0300 Subject: [PATCH] [Fix] Make warranty_return_partner field translatable --- product_warranty/models/product_supplierinfo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product_warranty/models/product_supplierinfo.py b/product_warranty/models/product_supplierinfo.py index 937eb284..fcc7b0fc 100644 --- a/product_warranty/models/product_supplierinfo.py +++ b/product_warranty/models/product_supplierinfo.py @@ -21,7 +21,7 @@ # along with this program. If not, see . # ########################################################################## -from openerp import api, fields, models +from openerp import api, fields, models, _ class ProductSupplierInfo(models.Model): @@ -30,9 +30,9 @@ class ProductSupplierInfo(models.Model): @api.model def get_warranty_return_partner(self): - result = [('company', 'Company'), - ('supplier', 'Supplier'), - ('other', 'Other'), + result = [('company', _('Company')), + ('supplier', _('Supplier')), + ('other', _('Other')), ] return result