Anzeige
Anzeige

Más contenido relacionado

Anzeige
Anzeige

Updating Client Interface 'on change' @api.onchange in Odoo 15

  1. www.cybrosys.com How to Update Client Interface ‘on change’ @api.onchange Odoo 15
  2. INTRODUCTION ● Odoo api.onchange decorator is used to invoke a method when a field's value changed. ● It can be used to validate the data or to trigger an action. A detailed explanation of the technical and functional aspects of the Onchange mechanical of Odoo. ● Furthermore, an insight into the Odoo api.onchange decorator operations which are used to invoke a method when a field's value changes in the platform
  3. api.onchange ● The function of this decorator will be called when the field value changes. ● Moreover, it supports only single field names; on the contrary, dotted names will not be considered. ● Furthermore, onchange methods are invoked on pseudo-records that contain values of the form
  4. ● @api.onchange “decorator will trigger the call to the decorated function if any of the fields specified in the decorator is changed in the form”. ● In previous sample self corresponds to the record currently edited on the form. When in onchange context all work is done in the cache.
  5. ● Changing the name field the address field will change accordingly
  6. For More Details Check our company website for related blogs and Odoo book. Odoo Book V15 Check our YouTube channel for functional and technical videos in Odoo. How to Update Client Interface 'on change' @api.onchange Odoo 15
  7. Thank You
Anzeige