Stay API
stay_api · OCA/vertical-abbey
Health
68/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
7 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis
1 migration note
4 models
6 views
0 HTTP endpoints
Migration considerations
StayType— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · 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
This module provides a REST API to create new stays. Useful if you have a web form on your website and you want it to create a new draft stay upon validation.
Dependencies
- Odoo dependencies
- Python dependencies
- fastapi, xlsxwriter, a2wsgi>=1.10.6, fastapi-openapi-overrides, parse-accept-language, python-multipart, ujson
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings | form | Inherits stay.res_config_settings_view_form | |
stay_form |
stay.stay | form | Inherits stay.stay_form | |
stay_search |
stay.stay | search | Inherits stay.stay_search | |
stay_type_form |
stay.type | form | New | |
stay_type_search |
stay.type | search | New | |
stay_type_tree |
stay.type | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
stay_controller_company_idMany2one → res.companyconfig_parameter='stay.controller.company_id'string='Default Company for Stays created from Web Form' args: 'res.company'
No public methods.
New fields (17)
-
controller_cityCharstring='City' -
controller_country_idMany2one → res.countrystring='Country' args: 'res.country' -
controller_emailCharstring='E-mail'tracking=True -
controller_firstnameCharstring='Firstname'tracking=True -
controller_lastnameCharstring='Lastname'tracking=True -
controller_messageCharstring='Guest Message' -
controller_mobileCharstring='Mobile'tracking=True -
controller_modeSelectionreadonly=Truestring='Web Form Mode' args: [('created', 'Created'), ('updated', 'Updated')] -
controller_notesHtmlstring='Additional Questions' -
controller_phoneCharstring='Phone'tracking=True -
controller_streetCharstring='Address Line 1' -
controller_street2Charstring='Address Line 2' -
controller_title_idMany2one → res.partner.titledomain=[('api_code', '!=', False)]string='Title'tracking=True args: 'res.partner.title' -
controller_update_urlCharcompute='_compute_controller_update_url'string='Update URL' -
controller_uuidCharcopy=Falsereadonly=Truestring='UUID' -
controller_zipCharstring='ZIP' -
type_idMany2one → stay.typeondelete='restrict' args: 'stay.type'
-
create(self, vals_list)@api.model_create_multi
New fields (4)
-
activeBooleandefault=True -
nameCharrequired=True -
sequenceInteger -
update_urlCharstring='Update URL'
No public methods.
Loading…
Loading…