product_library adds some fields to product and some utilities addons from OCA

This commit is contained in:
santiky 2021-08-06 13:03:47 +02:00
parent 9145e0cabe
commit 6c8876b991
Signed by: snt
GPG key ID: A9FD34930EADBE71
334 changed files with 92878 additions and 0 deletions

View file

@ -0,0 +1,2 @@
from . import res_product

View file

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import res_product

View file

@ -0,0 +1,24 @@
# 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 Product(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')

View file

@ -0,0 +1,25 @@
# 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')