1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_de_pos_cert/wizard/pos_payment.py
2024-12-10 09:04:09 +07:00

14 lines
387 B
Python

# -*- coding: utf-8 -*-
from odoo import models, _
from odoo.exceptions import UserError
class PosMakePayment(models.TransientModel):
_inherit = 'pos.make.payment'
def check(self):
if not self.config_id or self.config_id.l10n_de_fiskaly_tss_id:
raise UserError(_("You can only pay an order from the POS Cashier interface"))
return super().check()