Añade la funcionalidad de pos_empty_default_image pra poder mostraar el formato en productos sin imagen

This commit is contained in:
santiky 2021-08-23 23:03:12 +02:00
parent f1c8cf8414
commit 913de79db8
Signed by: snt
GPG key ID: A9FD34930EADBE71
14 changed files with 284 additions and 41 deletions

View file

@ -0,0 +1,16 @@
# Copyright (C) 2020 - Today:
# GRAP (http://www.grap.coop)
# @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
class PosConfig(models.Model):
_inherit = 'pos.config'
iface_fixed_font_size = fields.Integer(
string="Fixed Font Size",
help="Font size of the product name, when it has no image."
" Set '0' will set adaptative font-size, depending on the"
" length of the name.")