Añade la funcionalidad de pos_empty_default_image pra poder mostraar el formato en productos sin imagen
This commit is contained in:
parent
f1c8cf8414
commit
913de79db8
14 changed files with 284 additions and 41 deletions
26
product_library/models/product_template.py
Normal file
26
product_library/models/product_template.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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')
|
||||
formato = fields.Char('Formato')
|
||||
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')
|
||||
fecha_edicion = fields.Char('Fecha de edición')
|
||||
genero = fields.Char('Género')
|
Loading…
Add table
Add a link
Reference in a new issue