on_edit_form_created¶
- on_edit_form_created(item)¶
domain: client
language: javascript
class Item class
Description¶
The on_edit_form_created event is triggered by the create_edit_form method when the form has been created but not shown yet.
The item parameter is the item that triggered the event.
The following code is used in the
Demo project
Invoices table to make read only the field paid, and to remove the footer:
function on_edit_form_created(item) {
item.read_only = item.paid.value;
item.edit_form.find('.form-footer').remove();
}