Skip to Content
Menu
This question has been flagged
2 Replies
4030 Views

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.

Avatar
Discard

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.

Best Answer

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.


Avatar
Discard