diff --git a/product_library/models/res_product.py b/product_library/models/res_product.py index ada5269..4719c0a 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 ProductProduct(models.Model): - _inherit = "product.product" +class ProductTemplate(models.Model): + _inherit = "product.template" subtitle = fields.Char('Subtítulo') editorial = fields.Char('Editorial') diff --git a/product_library/views/product.xml b/product_library/views/product.xml index 7a9a50e..938faef 100644 --- a/product_library/views/product.xml +++ b/product_library/views/product.xml @@ -2,8 +2,8 @@ - product.product.library.form - product.product + product.template.library.form + product.template