Shopfloor Base
shopfloor_base · OCA/shopfloor-app
OCA/wms 13.0–16.0 → OCA/shopfloor-app 18.0
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by25/255 modules depend on it
-
Maturity25/25In 4 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
ShopfloorApp— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceShopfloorScenario— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `DELETE FROM endpoint_route WHERE route like %s` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `DELETE FROM endpoint_route WHERE route_group LIKE %s OR opts LIKE %s` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Shopfloor is a barcode scanner application.
This module provides REST APIs to support scenario. It needs a frontend
to consume the backend APIs and provide screens for users on barcode
devices. A default front-end application is provided by
shopfloor_mobile_base.
Dependencies
- Odoo dependencies
- Python dependencies
- apispec, cerberus, parse-accept-language, pyquerystring, cachetools
- System dependencies
- None
- Required by
- shopfloor, shopfloor_example, shopfloor_mobile_base, shopfloor_rest_log, shopfloor_workstation
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 12
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
shopfloor_app_form_view |
shopfloor app form | shopfloor.app | form | New |
shopfloor_app_search_view |
shopfloor app search | shopfloor.app | search | New |
shopfloor_app_tree_view |
shopfloor app tree | shopfloor.app | list | New |
shopfloor_menu_form_view |
shopfloor menu form | shopfloor.menu | form | New |
shopfloor_menu_search_view |
shopfloor menu search | shopfloor.menu | search | New |
shopfloor_menu_tree_view |
shopfloor menu tree | shopfloor.menu | list | New |
shopfloor_profile_form_view |
shopfloor.profile form | shopfloor.profile | form | New |
shopfloor_profile_search_view |
shopfloor.profile search | shopfloor.profile | search | New |
shopfloor_profile_tree_view |
shopfloor.profile tree | shopfloor.profile | list | New |
shopfloor_scenario_form_view |
shopfloor.scenario form | shopfloor.scenario | form | New |
shopfloor_scenario_search_view |
shopfloor.scenario search | shopfloor.scenario | search | New |
shopfloor_scenario_tree_view |
shopfloor.scenario tree | shopfloor.scenario | list | New |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/shopfloor/api-docs/<tech_name(shopfloor.app):collection>/<string:service_name>.json |
ApiDocsController.shopfloor_api |
public | http | ALL | |
/shopfloor/api-docs/<tech_name(shopfloor.app):collection>, /shopfloor/api-docs/<tech_name(shopfloor.app):collection>/index.html |
ApiDocsController.shopfloor_index |
public | http | GET | sudo |
Models touched 5
No new fields.
Public methods (0)No public methods.
-
activeBooleandefault=True -
api_docs_urlCharcompute='_compute_url'help='Public URL for api docs.' -
api_routeCharcompute='_compute_api_route'compute_sudo=Truehelp='Base route for endpoints attached to this app, public version.' -
api_routeCharcompute='_compute_api_route'compute_sudo=Truehelp='\n Base route for endpoints attached to this app,\n internal controller-ready version.\n ' -
app_versionCharcompute='_compute_app_version' -
auth_typeSelectiondefault='user_endpoint'selection='_selection_auth_type' -
categorySelectionselection=[('', 'None')] -
lang_idMany2one → res.langhelp='If set, the app will be first loaded with this lang.'string='Default language' args: 'res.lang' -
lang_idsMany2many → res.langstring='Available languages' args: 'res.lang' -
nameCharrequired=Truetranslate=True -
profile_idsMany2many → shopfloor.profilecomodel_name='shopfloor.profile'help="Profiles used by this app. This will determine menu items too.However this field is not required in case you don't need profiles and menu items from the backend."string='Profiles' -
profile_requiredBooleancompute='_compute_profile_required'store=True -
registered_routesTextcompute='_compute_registered_routes'compute_sudo=Truegroups='base.group_no_one'help='Technical field to allow developers to check registered routes on the form' -
short_nameCharhelp='Needed for app manifest'required=Truetranslate=True -
tech_nameCharindex=Truerequired=True -
urlCharcompute='_compute_url'help='Public URL to use the app.'
-
action_open_app(self) -
action_open_app_docs(self) -
action_view_menu_items(self) -
api_url_for_service(self, service_name, endpoint=None)Handy method to generate services' API URLs for current app.
-
activeBooleandefault=True -
nameCharrequired=Truetranslate=True -
profile_idMany2one → shopfloor.profilehelp='Visible on this profile only'string='Profile' args: 'shopfloor.profile' -
scenario_idMany2one → shopfloor.scenarioauto_join=Truecomodel_name='shopfloor.scenario'ondelete='restrict'required=True -
scenario_keyCharrelated='scenario_id.key' -
sequenceInteger
No public methods.
-
activeBooleandefault=True -
menu_idsOne2many → shopfloor.menucomodel_name='shopfloor.menu'help='Menus visible for this profile'inverse_name='profile_id'string='Menus' -
nameCharrequired=Truetranslate=True -
sequenceIntegerdefault=0
No public methods.
-
keyCharhelp="Identify scenario univocally. This value must match a service component's `usage`."required=True -
nameCharrequired=Truetranslate=True -
options_editTexthelp='Configure options via JSON'inverse='_inverse_options_edit'
-
create(self, vals_list)@api.model_create_multi -
has_option(self, key) -
write(self, vals)
Loading…
Loading…
Loading…