Manufacturing

Bills of materials

MarketplaceOperationsVersion 0.1.0manifest

What it is for ​

Define what a product is made of and plan manufacturing orders through draft, confirmed, in progress and done. Component stock is not consumed automatically.

What the package does and does not do ​

Bills of materials and manufacturing orders with a draft, confirmed, in progress and done flow. Component stock is not consumed automatically.

Models ​

manufacturing_bom ​

A recipe: the components needed to make a product

Read group: manufacturing.user. Write group: manufacturing.manager.

FieldKindData classPersonal dataGroupAgents seeDescription
product_idref → productnonenomanufacturing.userin clearThe finished product the recipe makes
nametextnonenomanufacturing.userin clearName of the recipe, for example Standard assembly
quantitynumbernonenomanufacturing.userin clearUnits of the finished product one run produces
instructionslongtextnonenomanufacturing.userin clearAssembly notes for the shop floor
activeboolnonenomanufacturing.userin clearWhether the recipe can be used for new orders

manufacturing_bom_line ​

One component of a bill of materials

Read group: manufacturing.user. Write group: manufacturing.manager.

FieldKindData classPersonal dataGroupAgents seeDescription
bom_idref → manufacturing_bomnonenomanufacturing.userin clearThe recipe the component belongs to
component_idref → productnonenomanufacturing.userin clearThe product consumed
quantitynumbernonenomanufacturing.userin clearUnits of the component used per run

manufacturing_order ​

An instruction to produce a quantity of a product

Read group: manufacturing.user. Write group: manufacturing.user.

FieldKindData classPersonal dataGroupAgents seeDescription
referencetextnonenomanufacturing.userin clearOrder number, for example MO-0042
bom_idref → manufacturing_bomnonenomanufacturing.userin clearThe recipe to follow
quantitynumbernonenomanufacturing.userin clearUnits of the finished product to make
planned_ondatenonenomanufacturing.userin clearDate production should start (YYYY-MM-DD)
deadlinedatenonenomanufacturing.userin clearDate the goods are needed (YYYY-MM-DD)
responsibletextinternalyesmanufacturing.usermaskedName of the person in charge of the run
stateselect (draft, confirmed, in_progress, done, cancelled)nonenomanufacturing.userin clearOrder status: draft, confirmed, in_progress, done, cancelled

Workflows ​

manufacturing_order ​

ActionMovesWho may run itApproval
manufacturing_order.confirmstate: draft → confirmedmanufacturing.managerno
manufacturing_order.startstate: confirmed → in_progressmanufacturing.userno
manufacturing_order.finishstate: in_progress → donemanufacturing.userno
manufacturing_order.cancelstate: draft → cancelledmanufacturing.userno

Permission groups ​

Groups used by this app:

  • manufacturing.manager
  • manufacturing.user

Approval steps ​

No step in this app needs an approval, apart from deleting records.

What agents can and cannot do ​

An agent can read, search, create and update records of this app, and run the actions that need no approval, within the permission groups of its token.

It can only propose these steps, and a person must approve them: manufacturing_bom.delete, manufacturing_bom_line.delete, manufacturing_order.delete.

Personal data is masked as placeholder tokens: manufacturing_order.responsible.

Dependencies ​

  • product

Install ​

Install it from the Customize app (Marketplace), or from the command line:

bash
obop modules install-from manufacturing

Needs a database and administrator rights.

Build your own ​

The module guide shows how apps like this one are written