Skip to content

[18.0][ADD] fieldservice_equipment_calibration_portal: calibration certificates on the equipment portal page - #1602

Open
marcos-mendez wants to merge 7 commits into
OCA:18.0from
marcos-mendez:18.0-add-fieldservice_equipment_calibration_portal
Open

[18.0][ADD] fieldservice_equipment_calibration_portal: calibration certificates on the equipment portal page#1602
marcos-mendez wants to merge 7 commits into
OCA:18.0from
marcos-mendez:18.0-add-fieldservice_equipment_calibration_portal

Conversation

@marcos-mendez

Copy link
Copy Markdown
Contributor

Optional glue between fieldservice_equipment_portal and fieldservice_equipment_calibration: the equipment portal page gains a Calibration Certificates section with download links (/my/equipments/calibration/<id>/download). Downloads honor the same access rules as the page (portal user, access token or the Public Equipment Pages setting).

Stacked on #1595 and #1596 — review only the last commit; the earlier ones belong to those PRs and this rebases to a one-commit PR once they merge.

Tests: 4 HttpCase tests, 100% branch coverage.

Marcos added 4 commits August 5, 2026 19:05
Portal users can see the equipments owned or managed by their commercial
partner: counter card on /my, paginated list at /my/equipments and a
token-shareable detail page — a stable URL suited as QR code target on
physical labels.
…ents

60x40mm label report with company logo, serial number and a QR code
pointing to the equipment's portal page. QR is computed on the fly from
portal.mixin's access_url, so labels survive base URL changes.
- New setting "Public Equipment Pages" (ir.config_parameter
  fieldservice_equipment_portal.public_access, default off): equipment
  pages become readable without login, for QR code labels printed
  without an access token.
- Fix template crash when fieldservice_equipment_stock is not
  installed (fsm.equipment has no product_id field there).
@OCA-git-bot OCA-git-bot added series:18.0 mod:fieldservice_equipment_calibration Module fieldservice_equipment_calibration mod:fieldservice_equipment_portal_qrcode Module fieldservice_equipment_portal_qrcode mod:fieldservice_equipment_portal Module fieldservice_equipment_portal mod:fieldservice_equipment_calibration_portal Module fieldservice_equipment_calibration_portal labels Aug 6, 2026
Marcos added 3 commits August 6, 2026 04:09
…ial number

New public route /my/equipments/serial/<serial> redirects to the
equipment portal page, so printed QR labels stay valid even if the
equipment id changes. Access control happens on the target page.
…r equipments

Track calibration certificates (validity dates, attached file, chatter)
per field service equipment, with a Calibration tab on the equipment form
and a Master Data menu entry.

Extracted from a production clinical-engineering vertical running on
Odoo 18. Original code by Rafnix Guzman.
…ates on the equipment portal page

Optional glue between fieldservice_equipment_portal and
fieldservice_equipment_calibration: the equipment portal page gains a
Calibration Certificates section with download links. Downloads honor
the same access rules as the page (portal user, access token or the
Public Equipment Pages setting).
@marcos-mendez
marcos-mendez force-pushed the 18.0-add-fieldservice_equipment_calibration_portal branch from 5411723 to 7a92890 Compare August 6, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:fieldservice_equipment_calibration_portal Module fieldservice_equipment_calibration_portal mod:fieldservice_equipment_calibration Module fieldservice_equipment_calibration mod:fieldservice_equipment_portal_qrcode Module fieldservice_equipment_portal_qrcode mod:fieldservice_equipment_portal Module fieldservice_equipment_portal series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants