adding action delete

This commit is contained in:
Cayo Puigdefabregas 2021-10-05 11:56:19 +02:00
parent dc3b9ebf2d
commit ec2d286ed3
3 changed files with 15 additions and 0 deletions

View File

@ -255,6 +255,11 @@ class MakeAvailable(ActionDef):
SCHEMA = schemas.MakeAvailable SCHEMA = schemas.MakeAvailable
class Delete(ActionDef):
VIEW = None
SCHEMA = schemas.Delete
class ConfirmDef(ActionDef): class ConfirmDef(ActionDef):
VIEW = None VIEW = None
SCHEMA = schemas.Confirm SCHEMA = schemas.Confirm

View File

@ -1680,6 +1680,12 @@ class MoveOnDocument(JoinedTableMixin, ActionWithMultipleTradeDocuments):
container_to_id.comment = """This is the trade document used as container in a outgoing lot""" container_to_id.comment = """This is the trade document used as container in a outgoing lot"""
class Delete(JoinedTableMixin, ActionWithMultipleDevices):
"""The act save in device who and why this devices was delete.
We never delete one device, but we can deactivate."""
pass
class Migrate(JoinedTableMixin, ActionWithMultipleDevices): class Migrate(JoinedTableMixin, ActionWithMultipleDevices):
"""Moves the devices to a new database/inventory. Devices cannot be """Moves the devices to a new database/inventory. Devices cannot be
modified anymore at the previous database. modified anymore at the previous database.

View File

@ -830,6 +830,10 @@ class TransferOwnershipBlockchain(Trade):
__doc__ = m.TransferOwnershipBlockchain.__doc__ __doc__ = m.TransferOwnershipBlockchain.__doc__
class Delete(ActionWithMultipleDevices):
__doc__ = m.Delete.__doc__
class Migrate(ActionWithMultipleDevices): class Migrate(ActionWithMultipleDevices):
__doc__ = m.Migrate.__doc__ __doc__ = m.Migrate.__doc__
other = URL() other = URL()