I have created a custom module in Odoo 18 with a form view for my model.
When I open the form view (without entering any data) and then navigate to another menu or tab, Odoo automatically creates a new record with empty/default values in the database.
This results in multiple “null” or blank records being created unintentionally.
My questions:
- Why does Odoo create these empty records?
- Is this the default behavior of form views in Odoo, or is it caused by my form view setup?
- How can I prevent Odoo from saving a record until the user clicks Save?
Any guidance or best practices for preventing these unwanted blank records would be appreciated.