From 59cdcbd1732df83fa0e878d184b3460e5e52052b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Thu, 20 Aug 2020 22:39:08 +0200 Subject: [PATCH] [MIG] migrate product_no_tranlation --- .../{__openerp__.py => __manifest__.py} | 2 +- product_no_translation/product.py | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) rename product_no_translation/{__openerp__.py => __manifest__.py} (98%) diff --git a/product_no_translation/__openerp__.py b/product_no_translation/__manifest__.py similarity index 98% rename from product_no_translation/__openerp__.py rename to product_no_translation/__manifest__.py index 2bf9c7f..c289b81 100644 --- a/product_no_translation/__openerp__.py +++ b/product_no_translation/__manifest__.py @@ -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', diff --git a/product_no_translation/product.py b/product_no_translation/product.py index b8722b1..a1ed71b 100644 --- a/product_no_translation/product.py +++ b/product_no_translation/product.py @@ -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)