OdooWiki OCA HUB

Shopfloor example

shopfloor_example folder_open OCA/shopfloor-app open_in_new
Hidden License: AGPL-3

Example on how to create your own scenario.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds two example scenarios to the Shopfloor mobile app: browse countries and manage partners, including scanning a partner reference to open its detail card and jumping from a country to its partners.

This module is a demonstration of how the Shopfloor mobile app can be extended with custom scenarios. It does not change day-to-day Odoo screens; instead it adds two new mobile flows that appear in the Shopfloor app menus.

  • "Browse countries": shows a list of countries, opens a detail card with the country code and phone code, and offers a button "View partners from this country" that jumps straight into the partner scenario pre-loaded with the partners of that country.
  • "Manage partners": starts on a scan screen where the user scans a partner reference, or taps "Manual selection" to pick a partner from a list. The partner detail card shows the reference and email. A search bar is available to filter partners by name.

Behind the scenes the module exposes read-only services for res.country and res.partner, defines the data returned to the mobile app, and registers a scan handler so a scanned reference is matched against the partner reference field. A post-install step fills in the reference of any partner that has none, using the partner's ID, so scanning works out of the box. Demo data creates a "Partner manager" profile, the two scenarios and their menus, and an app entry using API key authentication.

Models and fields (13)
  • shopfloor.app · extends an existing modelcategory
  • shopfloor.data.action · extends an existing model
  • custom.example.country · new model
  • custom.example.partner · new model
  • shopfloor.schema.action · extends an existing model
  • shopfloor.search.action · extends an existing model
  • shopfloor.data.detail.action · extends an existing model
  • shopfloor.scan.partner.handler · new model
  • shopfloor.schema.detail.action · extends an existing model
  • shopfloor.country_example.validator · new model
  • shopfloor.partner_example.validator · new model
  • shopfloor.country_example.validator.response · new model
  • shopfloor.partner_example.validator.response · new model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.