Skip to content

Machine types, operations and defect reasons: the manufacturing directories

Describes Manufacturing 0.5.0.

Machine types, operations and defect reasons are short lists you pick from when you describe a machine. Manufacturing keeps them as entities, so you edit them on the Entities pages.

Where to find it

Open Manufacturing in the admin sidebar, then Types, Operations or Defect Reasons. The same three tabs sit above the machines list. Each one takes you straight to an Entities page:

  • Types: /admin/entities/machine_type/data
  • Operations: /admin/entities/operation/data
  • Defect Reasons: /admin/entities/defect_reason/data

You need the Manufacturing permission to reach the tabs, and the Entities module, which Manufacturing depends on. The three entities (Machine Type, Operation, Defect Reason) are created for you when the app starts, once at least one user exists.

Machine types kept in Entities: Edge bander, CNC router and Panel saw Machine types kept in Entities: Edge bander, CNC router and Panel saw

Machine types are records of an entity.

What each directory holds

  • Machine Type: a name and a Description. Link types to a machine on its General tab; a machine can have several.
  • Operation: a name, a Unit and a Base time norm (seconds). On a machine’s Operations tab you tick the operations it performs, and may give that machine its own time norm.
  • Defect Reason: a name and a Description.

Only published records are offered on the machine form.

Specification fields for a machine type

A machine type can define extra fields that appear on every machine linked to it, under Specifications. The Entities form has no place for these, so Manufacturing has its own small editor.

To open it, edit a machine and click the pencil next to a type badge under Machine Types. The page is titled Field Template: followed by the type’s name.

The field template of the machine type Edge bander: specification fields, none yet, with Add field The field template of the machine type Edge bander: specification fields, none yet, with Add field

Extra fields for machines of one type.

  • Add field adds a row. With no rows the card says No fields yet — click “Add field” to define one.
  • Key: the field’s internal name, for example power_kw. Use lowercase letters, digits and underscores. Each key may appear only once in a type.
  • Label: what the machine form shows, for example Power.
  • Type: Text, Number, Date, Boolean or Select.
  • Unit: optional, for example kW.
  • Options (comma-separated): the choices for a Select field. A Select field needs at least one.
  • Required: adds an asterisk to the field’s label on the machine form. The form does not stop you saving a machine with the field empty.
  • Remove deletes the row.

Save Changes saves the template and shows Field template saved. Problems are listed above the rows, such as Duplicate key: and the key.

What it doesn’t do

  • Manufacturing has no list or form of its own for these directories; the tabs only send you to the Entities pages.
  • Saving or cancelling the specification fields editor takes you to the Machine Types entity list, not back to the machine you came from.