Inventory

Stocks et entrepôts

Place de marchéOpérationsVersion 0.1.0manifest

À quoi elle sert ​

Describe warehouses and locations, record stock levels and log stock moves. Quantities are entered by people, so it works as a ledger of what was counted and moved rather than an automatic stock engine.

Ce que fait et ne fait pas le paquet ​

Warehouses, stock locations, stock levels and stock moves. Quantities are entered and validated by people; they are not updated automatically by moves.

Modèles ​

inventory_warehouse ​

A building or site where stock is kept

Groupe de lecture: inventory.user. Groupe d'écriture: inventory.manager.

ChampTypeClasse de donnéesDonnées personnellesGroupeVu par les agentsDescription
nametextnonenoninventory.useren clairWarehouse name
codetextnonenoninventory.useren clairShort code printed on documents, for example WH1
addresslongtextnonenoninventory.useren clairPostal address of the site
activeboolnonenoninventory.useren clairWhether the warehouse is in use

inventory_location ​

A place inside a warehouse where stock can sit

Groupe de lecture: inventory.user. Groupe d'écriture: inventory.manager.

ChampTypeClasse de donnéesDonnées personnellesGroupeVu par les agentsDescription
nametextnonenoninventory.useren clairLocation name, for example Shelf A3
warehouse_idref → inventory_warehousenonenoninventory.useren clairThe warehouse the location belongs to
kindselect (internal, receiving, shipping, transit, scrap)nonenoninventory.useren clairWhat the location is used for: internal, receiving, shipping, transit, scrap
activeboolnonenoninventory.useren clairWhether the location is in use

inventory_item ​

The quantity of one product held at one location

Groupe de lecture: inventory.user. Groupe d'écriture: inventory.manager.

ChampTypeClasse de donnéesDonnées personnellesGroupeVu par les agentsDescription
product_idref → productnonenoninventory.useren clairThe product held
location_idref → inventory_locationnonenoninventory.useren clairWhere it is held
quantitynumbernonenoninventory.useren clairUnits on hand
reorder_levelnumbernonenoninventory.useren clairQuantity at or below which the product should be replenished
lottextnonenoninventory.useren clairLot or batch number, if tracked

inventory_move ​

A movement of a product between locations, or into or out of the business

Groupe de lecture: inventory.user. Groupe d'écriture: inventory.user.

ChampTypeClasse de donnéesDonnées personnellesGroupeVu par les agentsDescription
referencetextnonenoninventory.useren clairReference of the move, for example a delivery or receipt number
product_idref → productnonenoninventory.useren clairThe product moved
from_location_idref → inventory_locationnonenoninventory.useren clairWhere it leaves; empty for a receipt from a supplier
to_location_idref → inventory_locationnonenoninventory.useren clairWhere it arrives; empty for a delivery to a customer
quantitynumbernonenoninventory.useren clairUnits moved
scheduled_ondatenonenoninventory.useren clairDate the move is planned for (YYYY-MM-DD)
stateselect (draft, done, cancelled)nonenoninventory.useren clairMove status: draft, done, cancelled

Flux de travail ​

inventory_move ​

ActionTransitionQui peut l'exécuterApprobation
inventory_move.validatestate: draft → doneinventory.useroui
inventory_move.cancelstate: draft → cancelledinventory.usernon

Groupes de permissions ​

Groupes utilisés par cette application :

  • inventory.manager
  • inventory.user

Étapes d'approbation ​

Étapes qu'un agent ne peut que proposer :

  • inventory_move.validate

Ce que les agents peuvent et ne peuvent pas faire ​

Un agent peut lire, rechercher, créer et modifier les enregistrements de cette application, et exécuter les actions qui ne requièrent pas d'approbation, dans les limites des groupes de permissions de son jeton.

Il ne peut que proposer ces étapes, qu'une personne doit approuver : inventory_move.validate, inventory_warehouse.delete, inventory_location.delete, inventory_item.delete, inventory_move.delete.

Dépendances ​

  • product

Installation ​

Installez-la depuis l'application Customize (Place de marché), ou en ligne de commande :

bash
obop modules install-from inventory

Nécessite une base de données et des droits d'administrateur.

Créer la vôtre ​

Le guide des modules montre comment sont écrites les applications de ce type