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.
|
|
|
|
|
|
|
|
|
|
from trytond.exceptions import UserError, UserWarning
|
|
|
|
|
from trytond.model.exceptions import ValidationError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PeriodNotFoundError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PeriodValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ClosePeriodError(PeriodValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PeriodDatesError(PeriodValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FiscalYearNotFoundError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FiscalYearCloseError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FiscalYearReOpenError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2023-12-23 23:12:41 +01:00
|
|
|
class JournalMissing(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2018-12-29 14:20:28 +01:00
|
|
|
class AccountMissing(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2022-01-04 22:22:17 +01:00
|
|
|
class AccountValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SecondCurrencyError(AccountValidationError):
|
2018-12-29 14:20:28 +01:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ChartWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PostError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2022-02-02 15:42:34 +01:00
|
|
|
class MoveTemplateExpressionError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2023-03-12 17:25:52 +01:00
|
|
|
class MoveTemplateKeywordValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2024-06-26 09:39:26 +02:00
|
|
|
class CopyWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2018-12-29 14:20:28 +01:00
|
|
|
class CancelWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ReconciliationError(ValidationError):
|
|
|
|
|
pass
|
2019-04-12 19:43:53 +02:00
|
|
|
|
|
|
|
|
|
2023-02-15 23:06:35 +01:00
|
|
|
class ReconciliationDeleteWarning(UserWarning):
|
2019-04-12 19:43:53 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 12:24:37 +01:00
|
|
|
class CancelDelegatedWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2019-04-12 19:43:53 +02:00
|
|
|
class GroupLineError(UserError):
|
|
|
|
|
pass
|
2021-08-20 23:45:02 +02:00
|
|
|
|
|
|
|
|
|
2023-09-08 20:52:32 +02:00
|
|
|
class GroupLineWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2022-01-26 00:32:20 +01:00
|
|
|
class RescheduleLineError(UserError):
|
2021-08-20 23:45:02 +02:00
|
|
|
pass
|
2022-09-11 17:45:41 +02:00
|
|
|
|
|
|
|
|
|
2023-09-08 20:52:32 +02:00
|
|
|
class RescheduleLineWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2022-09-11 17:45:41 +02:00
|
|
|
class DelegateLineError(UserError):
|
|
|
|
|
pass
|
2023-09-08 20:52:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class DelegateLineWarning(UserWarning):
|
|
|
|
|
pass
|