in my Model A have default save button when i clicked on it should save the record in db and redirect to Model B tree view list.
is there any other function calls after create function how i redirect???
please share code.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
in my Model A have default save button when i clicked on it should save the record in db and redirect to Model B tree view list.
is there any other function calls after create function how i redirect???
please share code.
You can catch method that works after 'create' method using browser develop tools.
For example, I use Firefox.
Press F12 and select 'Console' Tab and then Save you model in Odoo. After that in console window you can find 'create' method and method after it.
But I think in your situation maybe method 'create' was overwriten and you need to check it at the beginning.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
I don't know if anymore function is called after create method. Try this method intead
During button click in a form the record will get automatically saved. So you can just create a button to open another model.