cambiado el modelo a product.product
This commit is contained in:
parent
c3049046df
commit
b48b7df70a
3 changed files with 3 additions and 28 deletions
|
@ -8,8 +8,8 @@ from odoo import tools, models, fields, api, _
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Product(models.Model):
|
class ProductProduct(models.Model):
|
||||||
_inherit = "product.template"
|
_inherit = "product.product"
|
||||||
|
|
||||||
subtitle = fields.Char('Subtítulo')
|
subtitle = fields.Char('Subtítulo')
|
||||||
editorial = fields.Char('Editorial')
|
editorial = fields.Char('Editorial')
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
# Copyright (C) 2021: Criptomart (https://criptomart.net)
|
|
||||||
# @author Santi Noreña (<santi@criptomart.net>)
|
|
||||||
# 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')
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<data>
|
<data>
|
||||||
<record model="ir.ui.view" id="product_library_form_config">
|
<record model="ir.ui.view" id="product_library_form_config">
|
||||||
<field name="name">product.product.library.form</field>
|
<field name="name">product.product.library.form</field>
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.product</field>
|
||||||
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="barcode" position="after">
|
<field name="barcode" position="after">
|
||||||
|
|
Loading…
Add table
Reference in a new issue