Skip to main content

Equipment Codes and QR Preview

Every piece of maintenance equipment receives a unique, auto-generated code that drives QR code creation and label printing.

Automatic Assignment (New Equipment)

When you create a new equipment record, the module automatically assigns an equipment code using the maintenance.equipment.code sequence. No action required.

Equipment list view showing equipment with auto-assigned codes

Manual Assignment (Existing Equipment)

For equipment that existed before the module was installed:

  1. Open the equipment record from Maintenance > Equipment
  2. Locate the Equipment Code field (below Serial Number)
  3. Click the Generate Code link button next to the empty field
  4. The code is assigned instantly and the QR code is generated

Generate Code button visible for Equipment Managers when no code exists

Equipment code successfully generated and displayed

Manager Only

The Generate Code button is only visible to users in the Equipment Manager group. Non-manager users cannot manually generate codes.

Equipment Code Sequence

Equipment codes are generated automatically using an ir.sequence with a yearly-resetting counter.

Code Format

MEQ/%(year)s/#####
PartDescriptionExample
MEQFixed prefix (Maintenance Equipment)MEQ
%(year)sCurrent year (resets counter each year)2026
#####5-digit zero-padded counter00001

Example Codes

  • MEQ/2026/00001 -- First equipment created in 2026
  • MEQ/2026/00042 -- 42nd equipment in 2026
  • MEQ/2027/00001 -- First equipment in 2027 (counter resets)

Sequence Properties

PropertyValue
Sequence Codemaintenance.equipment.code
PrefixMEQ/%(year)s/
Padding5 digits
CompanyGlobal (not company-specific)
No UpdateTrue (not reset on module reinstall)
Uniqueness Constraint

UNIQUE(x_equipment_code) -- "Equipment code must be unique!" Attempting to assign a duplicate code will raise a database error.

Equipment Code Field Properties

PropertyValue
Field Namex_equipment_code
TypeChar (text)
ReadonlyYes (on the form view)
IndexedYes (for fast database lookups)
TrackedYes (changes logged in chatter)
CopyNo (not copied when duplicating equipment)
UniqueYes (SQL constraint)
SearchableYes (added to search view)

QR Code Preview

Each equipment record with a code displays a live QR code preview in a dedicated tab on the form view.

QR Code Tab

Open any equipment record and navigate to the QR Code tab. The tab shows:

  • QR Payload (URL) -- The full URL encoded in the QR code, displayed as a clickable link
  • QR Code Image -- A 220x220 pixel live QR code rendered from the payload

QR Payload Format

The QR code encodes a direct deep-link to the equipment form:

<base_url>/web#id=<record_id>&model=maintenance.equipment&view_type=form

For example: https://myodoo.com/web#id=42&model=maintenance.equipment&view_type=form

Computed Fields

FieldTypeDescription
x_qr_payloadChar (computed)Full URL that the QR code encodes
x_qr_urlChar (computed)URL to Odoo's barcode endpoint that generates the QR image
x_qr_image_htmlHtml (computed)HTML <img> tag displaying the QR code
When QR is Generated

QR fields are computed automatically whenever the x_equipment_code or company_id changes. If no equipment code exists, all QR fields are set to empty.

Scanning QR Codes

Scan printed QR labels with any mobile device to instantly access the equipment record in Odoo.

Scanning Workflow

  1. Locate the QR label on the physical equipment
  2. Open your camera app or any QR scanner on your mobile device
  3. Point at the QR code -- the device reads the encoded URL
  4. Tap the link -- your browser opens directly to the equipment form in Odoo
  5. View or update the equipment details, log maintenance requests, etc.
Authentication Required

The user scanning the QR code must be logged into Odoo in their browser. If not logged in, they will be redirected to the Odoo login page first, then forwarded to the equipment record after authentication.

Use Cases

  • Maintenance technicians -- Scan equipment labels on the shop floor to quickly view maintenance history and log new requests
  • Inventory audits -- Scan labels during physical inventory checks to verify equipment records
  • Onboarding -- New team members can scan equipment to learn about each asset
  • Asset tracking -- Track physical location by scanning labels during facility walks
Need Help?

Contact SDLC Corp at sdlccorp.com/contact-us or email sales@sdlccorp.com