[MIG] migrate product_no_tranlation
This commit is contained in:
@@ -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',
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user