2018-12-29 14:20:29 +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 AssignError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2021-03-21 15:49:07 +01:00
|
|
|
class MoveValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2018-12-29 14:20:29 +01:00
|
|
|
class LocationValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PeriodCloseError(UserError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InventoryValidationError(ValidationError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InventoryCountWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MoveOriginWarning(UserWarning):
|
|
|
|
|
pass
|
2020-01-26 21:10:40 +01:00
|
|
|
|
|
|
|
|
|
2020-10-04 23:57:37 +02:00
|
|
|
class MoveFutureWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 20:31:27 +02:00
|
|
|
class InventoryFutureWarning(UserWarning):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2020-01-26 21:10:40 +01:00
|
|
|
class ProductCostPriceError(ValidationError):
|
|
|
|
|
pass
|