upgrade v16
separación de las funcionalidades del PoS en un módulo aparte
This commit is contained in:
parent
cb788d4a45
commit
386ae33d80
19 changed files with 184 additions and 386 deletions
|
@ -1,19 +1,11 @@
|
|||
# Copyright (C) 2017 - Today:
|
||||
# GRAP (http://www.grap.coop)
|
||||
# Akretion (http://www.akretion.com)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import models, fields, api
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
class ProductProduct(models.Model):
|
||||
_inherit = 'product.product'
|
||||
|
||||
@api.depends('image')
|
||||
def _compute_has_image(self):
|
||||
for product in self:
|
||||
product.has_image = product.image
|
||||
|
||||
has_image = fields.Boolean(
|
||||
compute='_compute_has_image', string='Has Image', store=True)
|
||||
formato = fields.Char('Formato', related='product_tmpl_id.formato', store=True)
|
||||
autor = fields.Char('Autor', related='product_tmpl_id.autor', store=True)
|
||||
editorial = fields.Char('Editorial', related='product_tmpl_id.editorial', store=True)
|
||||
genero = fields.Char('Genero', related='product_tmpl_id.genero', store=True)
|
||||
subtitle = fields.Char('Subtitulo', related='product_tmpl_id.subtitle', store=True)
|
||||
fecha_entrada = fields.Char('Fecha de entrada', related='product_tmpl_id.fecha_entrada', store=True)
|
Loading…
Add table
Add a link
Reference in a new issue