[MIG] migrate product_no_tranlation

This commit is contained in:
Sébastien BEAU
2020-08-20 22:39:08 +02:00
parent 7cf224cf23
commit 59cdcbd173
2 changed files with 6 additions and 12 deletions

View File

@@ -23,7 +23,7 @@
{
'name': 'Product no Translation',
'version': '0.1',
'version': '12.0.0.0.1',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'For companies that work with only one language',

View File

@@ -20,7 +20,7 @@
#
##############################################################################
from openerp import models, fields
from odoo import models, fields
class ProductTemplate(models.Model):
@@ -50,19 +50,13 @@ class ProductAttributeValue(models.Model):
name = fields.Char(translate=False)
class ProductUomCateg(models.Model):
_inherit = 'product.uom.categ'
class UomCategory(models.Model):
_inherit = 'uom.category'
name = fields.Char(translate=False)
class ProductUom(models.Model):
_inherit = 'product.uom'
name = fields.Char(translate=False)
class ProductUl(models.Model):
_inherit = 'product.ul'
class UomUom(models.Model):
_inherit = 'uom.uom'
name = fields.Char(translate=False)