Tuesday, February 2, 2021
1 change · master
New functionality added to Odoo
Users can now click directly on read-only form fields to start editing, with the selected field focused automatically and special handling for checkboxes, radio buttons, lists, and HTML fields. Navigation is smoother because changes are saved automatically when moving between records, menus, or actions, reducing interruptions and accidental lost work.
Original PR description
This PR adds two main features: quick edit and auto save Quick Edit --- The quick edit allows to click on fields in readonly form view to switch into edit mode. After switching mode, the clicked…
This PR adds two main features: quick edit and auto save Quick Edit --- The quick edit allows to click on fields in readonly form view to switch into edit mode. After switching mode, the clicked field is automatically focused. A few fields have a custom quick edit behaviour after mode switched: - checkboxes automatically toggle. - radio buttons are set to the selected value. - one2many list's cell are focused. One2many list fields now show the "add a line" in readonly mode. In order to minify the differences between edit and readonly modes multiple things have been done done: - a lot of `o_edit_only`,`o_read_only` labels have been removed and `placeholder` have been set on fields in a lot of xml templates. - the render function of many2one and x2many radio fields have been changed to render them the same in edit mode and read mode. - margins in inner form groups have been removed. - a minimum height on rows has been set to align them. - empty fields are now visible. (as a blank line) Auto Save --- Auto save is self explanatory. With auto save, changing the pager, going back in the breadcrumb, going to another action or clicking on a menu item doesn't ask to confirm changes if any but automatically saves them. In settings, the confirm dialog has been revamped. We can now decide to "Save" or "Discard" the changes or "Stay Here" to do nothing. --- [Enterprise PR](https://github.com/odoo/enterprise/pull/14931) task 2330101