pos_cashdro_allow_manual: move config from paymet.method to res.config

This commit is contained in:
Luis 2026-04-28 10:47:43 +02:00
parent d994ab600e
commit 86101218e9
8 changed files with 48 additions and 38 deletions

View file

@ -0,0 +1,18 @@
# Copyright 2026 Criptomart
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PosConfig(models.Model):
_inherit = "pos.config"
cashdro_allow_manual_amount = fields.Boolean(
string="Permitir importe manual CashDro",
help=(
"Cuando está activado, aparece un botón 'Manual' en la pantalla de "
"pago del TPV que permite confirmar el importe de la línea sin pasar "
"por la máquina CashDro. Útil ante fallos de comunicación, "
"devoluciones u otras situaciones de emergencia."
),
default=True,
)