2018-12-29 14:20:28 +01:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
|
|
2021-01-28 11:01:11 +01:00
|
|
|
from trytond.exceptions import UserError, UserWarning
|
2018-12-29 14:20:28 +01:00
|
|
|
from trytond.model.exceptions import ValidationError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PaymentTermValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PaymentTermComputeError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceTaxValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceNumberError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceLineValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PayInvoiceError(UserError):
|
|
|
|
|
pass
|
2021-01-28 11:01:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoicePaymentTermDateWarning(UserWarning):
|
|
|
|
|
pass
|
2021-09-15 19:19:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceFutureWarning(UserWarning):
|
|
|
|
|
pass
|
2022-02-14 00:11:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvoiceSimilarWarning(UserWarning):
|
|
|
|
|
pass
|
2023-02-02 18:50:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class CancelInvoiceMoveWarning(UserWarning):
|
|
|
|
|
pass
|