Base Onchange Rules
base_onchange_rule · OCA/server-tools
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 98 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.06 MB
Module directory on disk
Code analysis
4 migration notes
3 models
4 views
0 HTTP endpoints
Migration considerations
OnchangeRule— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceOnchangeRuleLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceonchange_rule_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceonchange_rule_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · 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
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- 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 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
onchange_rule_form_view |
onchange.rule | form | New | |
onchange_rule_line_search |
onchange.rule.line | search | New | |
onchange_rule_line_tree |
onchange.rule.line | tree | New | |
onchange_rule_tree |
onchange.rule | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
onchange_rule_unavailableBoolean
No public methods.
New fields (7)
-
activeBooleandefault=Truehelp='The active field allows you to make your record without effect but without remove it.' -
company_idMany2one → res.companycomodel_name='res.company'default=_default_companyindex=1string='Company' -
exist_restrictive_lineBooleancompute='_compute_exist_restrictive_line' -
model_idMany2one → ir.modelcomodel_name='ir.model'help=''required=Truestring='Model' -
nameCharrequired=True -
rule_line_idsOne2many → onchange.rule.linecomodel_name='onchange.rule.line'inverse_name='onchange_rule_id'string='Onchange Rule Lines' -
sequenceInteger
-
create(self, vals)@api.model -
unlink(self)@api.multi -
write(self, vals)@api.multi
New fields (18)
-
dest_field_idMany2one → ir.model.fieldscomodel_name='ir.model.fields'help="Select field that'll be driven by onchange according to implied record."required=Truestring='Destination Field' -
dest_valueCharcompute='_compute_value'string='Value' -
implied_modelCharhelp=''related='onchange_field_id.relation'string='Implied Model' -
implied_recordReferencehelp="Select the object that'll execute onchange."required=Trueselection='_authorised_implied_models' -
is_restrictive_ruleBooleanhelp='Restrictive rule is used to force the value of destination field.\nIf restrictive rule is False, destination value is set as default and can be modified by user'string='Restrictive Rule' -
m2o_valueReferencehelp='Final value after onchange is executed (Many2one)'selection='_authorised_destination_models'string='M2O Value' -
methodCharhelp='Name of the python function called to set value' -
method_commentCharhelp='Explanation of the method: documentation'string='Comment' -
model_idMany2one → ir.modelcomodel_name='ir.model'help=''related='onchange_rule_id.model_id' -
onchange_domainCharhelp="Domain is used in on_change. Domain must be in this form: {'partner_id': [('name', '=', 'Akretion')]}"string='Domain' -
onchange_field_idMany2one → ir.model.fieldscomodel_name='ir.model.fields'required=Truestring='Onchange Field' -
onchange_rule_idMany2one → onchange.rulecomodel_name='onchange.rule'required=Truestring='Onchange Rules' -
onchange_warningTextstring='Warning' -
readonlyBooleanhelp="If checked ensure than record can't be updated by user (only by inserted data)" -
related_fieldCharhelp='Related value is used to apply the onchange value get form related fields.\nE.g.: on sale order we can apply the partner price list by using this notation: partner_id.price_list_id'string='Related Field' -
selection_valueCharhelp='Final select value after onchange is executed'string='Selection Value' -
sequenceInteger -
val_typeSelectionhelp='Destination value type'selection=[('fixed', 'Fixed'), ('related', 'Related'), ('method', 'Method')]string='Type'
-
button_duplicate_record(self) -
create(self, vals)@api.model -
write(self, vals)@api.multi