Base Sub State
base_substate · OCA/server-ux
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by20/253 modules depend on it
-
Maturity25/25In 8 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis
0 migration notes
4 models
9 views
0 HTTP endpoints
Description
This module provide abstract models to manage customizable substates to be applied on different models (sale order, purchase, ...).
example:
- for the quotation state of a sale order we can define 3 substates "In negotiation", "Won" and "Lost".
- We can also send mail when the substate is reached.
It is not useful by itself. You can see an example of implementation in the 'purchase_substate' module. (purchase-workflow repository).
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_move_substate, sale_substate, stock_picking_batch_substate
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
base_substate_type_view_form |
base.substate.type | form | New | |
base_substate_type_view_list |
base.substate.type | list | New | |
base_substate_type_view_search |
base.substate.type | search | New | |
base_substate_view_form |
base.substate | form | New | |
base_substate_view_list |
base.substate | list | New | |
base_substate_view_search |
base.substate | search | New | |
target_state_value_view_form |
target.state.value | form | New | |
target_state_value_view_list |
target.state.value | list | New | |
target_state_value_view_search |
target.state.value | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (7)
-
activeBooleandefault=True -
descriptionTexttranslate=True -
mail_template_idMany2one → mail.templatehelp='If set, an email will be sent to the partner when the object reaches this substate.'string='Email Template' args: 'mail.template' -
modelSelectionhelp='Model for technical use'readonly=Truerelated='target_state_value_id.model'store=True -
nameCharrequired=Truetranslate=True args: 'Substate Name' -
sequenceIntegerhelp='Gives the sequence order when applying the default substate'index=True -
target_state_value_idMany2one → target.state.valueondelete='restrict' args: 'target.state.value'
No public methods.
New fields (1)
-
substate_idMany2one → base.substatecopy=Falsedefault=<expr>domain=<expr>index=Trueondelete='restrict'string='Sub State'tracking=True args: 'base.substate'
-
check_substate_id_consistency(self)@api.constrains('substate_id') -
check_substate_id_value(self)@api.constrains('substate_id', _state_field) -
create(self, vals_list)@api.model_create_multi -
write(self, values)
New fields (3)
-
modelSelectionrequired=Trueselection=[]string='Apply on' -
nameCharrequired=Truetranslate=True -
target_state_fieldCharhelp='Technical target state field name. Ex for sale order "state" for other "status" ... 'required=True
No public methods.
New fields (4)
-
base_substate_type_idMany2one → base.substate.typeondelete='restrict'string='Substate Type' args: 'base.substate.type' -
modelSelectionhelp='Model for technical use'readonly=Truerelated='base_substate_type_id.model'store=True -
nameCharhelp='Target state translateble name.\nEx: for sale order "Quotation", "Sale order", "Locked"...'required=Truetranslate=True args: 'Target state Name' -
target_state_valueCharhelp='Technical target state value.\nEx: for sale order "draft", "sale", "done", ...'required=True
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…