From f93bc37942aa4a3dda7f394c36bfa3c1d93e1637 Mon Sep 17 00:00:00 2001 From: snt Date: Sat, 14 Aug 2021 21:00:45 +0200 Subject: [PATCH] =?UTF-8?q?Regret=20a=20product.template,=20borra=20los=20?= =?UTF-8?q?datos=20de=20los=20productos=20sin=20script=20de=20migraci?= =?UTF-8?q?=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product_library/models/res_product.py | 4 ++-- product_library/views/product.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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