| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/server-tools |
| GIT | |
| GIT | https://github.com/OCA/server-tools.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/server-tools/tree/10.0/base_onchange_rule |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Akretion |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Akretion |
| COMMITTERS | |
| COMMITTERS | David Beal, oca-travis, OCA-git-bot, Mourad Elhadj Mimoune, Mourad |
| WEBSITE | |
| WEBSITE | https://odoo-community.org/ |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:59 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| 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 |
onchange_rule_unavailable
Boolean
No public methods.
active
Boolean
default=True
help='The active field allows you to make your record without effect but without remove it.'
company_id
Many2one → res.company
comodel_name='res.company'
default=_default_company
index=1
string='Company'
exist_restrictive_line
Boolean
compute='_compute_exist_restrictive_line'
model_id
Many2one → ir.model
comodel_name='ir.model'
help=''
required=True
string='Model'
name
Char
required=True
rule_line_ids
One2many → onchange.rule.line
comodel_name='onchange.rule.line'
inverse_name='onchange_rule_id'
string='Onchange Rule Lines'
sequence
Integer
create(self, vals)
unlink(self)
write(self, vals)
dest_field_id
Many2one → ir.model.fields
comodel_name='ir.model.fields'
help="Select field that'll be driven by onchange according to implied record."
required=True
string='Destination Field'
dest_value
Char
compute='_compute_value'
string='Value'
implied_model
Char
help=''
related='onchange_field_id.relation'
string='Implied Model'
implied_record
Reference
help="Select the object that'll execute onchange."
required=True
selection='_authorised_implied_models'
is_restrictive_rule
Boolean
help='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_value
Reference
help='Final value after onchange is executed (Many2one)'
selection='_authorised_destination_models'
string='M2O Value'
method
Char
help='Name of the python function called to set value'
method_comment
Char
help='Explanation of the method: documentation'
string='Comment'
model_id
Many2one → ir.model
comodel_name='ir.model'
help=''
related='onchange_rule_id.model_id'
onchange_domain
Char
help="Domain is used in on_change. Domain must be in this form: {'partner_id': [('name', '=', 'Akretion')]}"
string='Domain'
onchange_field_id
Many2one → ir.model.fields
comodel_name='ir.model.fields'
required=True
string='Onchange Field'
onchange_rule_id
Many2one → onchange.rule
comodel_name='onchange.rule'
required=True
string='Onchange Rules'
onchange_warning
Text
string='Warning'
readonly
Boolean
help="If checked ensure than record can't be updated by user (only by inserted data)"
related_field
Char
help='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_value
Char
help='Final select value after onchange is executed'
string='Selection Value'
sequence
Integer
val_type
Selection
help='Destination value type'
selection=[('fixed', 'Fixed'), ('related', 'Related'), ('method', 'Method')]
string='Type'
button_duplicate_record(self)
create(self, vals)
write(self, vals)