mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
Merge pull request #96 from levkar/warranty_translation_fix
[Fix] Make warranty_return_partner field translatable
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
##########################################################################
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user