Hello!
I have a form view with two buttons. One button – Create (type=object) – should add a record to DB. Second one – View (type=action) – should open tree view with all created records.
The problem is that Create button adds two similar records to DB and View button opens tree view and also adds one record to DB. View button doesn’t even use method from my model.
What can be a problem with duplication of records?
Odoo v14
Here is the code
Views:
Model
Form view
result