December 2018
Beginner to intermediate
404 pages
10h 14m
English
The on change methods are triggered from user interface form views, when the user edits a value on a particular field to perform some business logic immediately. This can be performing some validation, showing a message to the user, or changing other fields in form. The model method supporting this logic should be decorated with @api.onchange('fld1', 'fld2', ...). The decorator arguments are the names of the fields that will trigger the method when edited by the user.
Inside the method, the self argument is a virtual record with the current form data. If values are set on the record, ...
Read now
Unlock full access