odoo/odoo#191602

Created by JavaScript, Saurabh Mishra (sami)
Closed
label
odoo-dev:master-massedit-required-field-fix-sami
head
f679af3f02c4c376df0e848deea42bddab54d99c
odoo/odoo
master #191602

[IMP] web: notify user when a required field is left empty

Before this commit:
- In the list view, if a user clears a required many2many field and attempts to save the record, the record is saved without notifying the user about the invalid field.

  • Clearing other required fields triggered a dialog with the message "No valid record to save," which was not always helpful and could be perceived as annoying.

  • Although there was an invalid field in a record, if no cell in the list was clicked(Global click), the first editable cell in the Listview would automatically gain focus.

After this commit:
- Now, if a user clears a required field and tries to save the record, then the record does not get saved, and the user receives a notification indicating the field is invalid.

  • The intrusive dialog has been replaced with a more user-friendly notification, improving the user experience.

  • Now, on a global click, the invalid cell will be focused if it exists.

task-3981155


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr