From b48b7df70a49b55949f8d5d7c6fe98fc51f2431e Mon Sep 17 00:00:00 2001 From: santiky Date: Thu, 12 Aug 2021 21:25:49 +0200 Subject: [PATCH] cambiado el modelo a product.product --- product_library/models/res_product.py | 4 ++-- product_library/models/res_product.py~ | 25 ------------------------- product_library/views/product.xml | 2 +- 3 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 product_library/models/res_product.py~ diff --git a/product_library/models/res_product.py b/product_library/models/res_product.py index 0da91d8..ada5269 100644 --- a/product_library/models/res_product.py +++ b/product_library/models/res_product.py @@ -8,8 +8,8 @@ from odoo import tools, models, fields, api, _ _logger = logging.getLogger(__name__) -class Product(models.Model): - _inherit = "product.template" +class ProductProduct(models.Model): + _inherit = "product.product" subtitle = fields.Char('Subtítulo') editorial = fields.Char('Editorial') diff --git a/product_library/models/res_product.py~ b/product_library/models/res_product.py~ deleted file mode 100644 index 93efb47..0000000 --- a/product_library/models/res_product.py~ +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (C) 2021: Criptomart (https://criptomart.net) -# @author Santi Noreña () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -import logging - -from odoo import tools, models, fields, api, _ - -_logger = logging.getLogger(__name__) - - -class ProductTemplate(models.Model): - _inherit = "product.template" - - subtitle = fields.Char('Subtítulo') - editorial = fields.Char('Editorial') - pais_edicion = fields.Char('País de Edicion') - colacion = fields.Char('Colación') - autor = fields.Char('Autor') - isbn = fields.Char('ISBN') - coleccion = fields.Char('Colección') - subcoleccion = fields.Char('Subcolección') - idioma = fields.Char('Idioma') - fecha_entrada = fields.Char('Fecha de entrada') - diff --git a/product_library/views/product.xml b/product_library/views/product.xml index 8be2a11..7a9a50e 100644 --- a/product_library/views/product.xml +++ b/product_library/views/product.xml @@ -3,7 +3,7 @@ product.product.library.form - product.template + product.product