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/>. #
|
# 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):
|
class ProductSupplierInfo(models.Model):
|
||||||
@@ -30,9 +30,9 @@ class ProductSupplierInfo(models.Model):
|
|||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def get_warranty_return_partner(self):
|
def get_warranty_return_partner(self):
|
||||||
result = [('company', 'Company'),
|
result = [('company', _('Company')),
|
||||||
('supplier', 'Supplier'),
|
('supplier', _('Supplier')),
|
||||||
('other', 'Other'),
|
('other', _('Other')),
|
||||||
]
|
]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user