[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', 'name': 'Product no Translation',
'version': '0.1', 'version': '12.0.0.0.1',
'category': 'Sales Management', 'category': 'Sales Management',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'For companies that work with only one language', '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): class ProductTemplate(models.Model):
@@ -50,19 +50,13 @@ class ProductAttributeValue(models.Model):
name = fields.Char(translate=False) name = fields.Char(translate=False)
class ProductUomCateg(models.Model): class UomCategory(models.Model):
_inherit = 'product.uom.categ' _inherit = 'uom.category'
name = fields.Char(translate=False) name = fields.Char(translate=False)
class ProductUom(models.Model): class UomUom(models.Model):
_inherit = 'product.uom' _inherit = 'uom.uom'
name = fields.Char(translate=False)
class ProductUl(models.Model):
_inherit = 'product.ul'
name = fields.Char(translate=False) name = fields.Char(translate=False)