first commit
This commit is contained in:
48
modules/stock/exceptions.py
Normal file
48
modules/stock/exceptions.py
Normal file
@@ -0,0 +1,48 @@
|
||||
# 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
|
||||
|
||||
|
||||
class MoveValidationError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class LocationValidationError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class PeriodCloseError(UserError):
|
||||
pass
|
||||
|
||||
|
||||
class InventoryValidationError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class InventoryCountWarning(UserWarning):
|
||||
pass
|
||||
|
||||
|
||||
class MoveOriginWarning(UserWarning):
|
||||
pass
|
||||
|
||||
|
||||
class MoveFutureWarning(UserWarning):
|
||||
pass
|
||||
|
||||
|
||||
class ProductCostPriceError(ValidationError):
|
||||
pass
|
||||
|
||||
|
||||
class ProductStockWarning(UserWarning):
|
||||
pass
|
||||
|
||||
|
||||
class ShipmentCheckQuantityWarning(UserWarning):
|
||||
pass
|
||||
Reference in New Issue
Block a user