Search code examples
pythonodooqweb

Add button next page - wizard - Odoo v8


I'm trying to create a wizard which has several pages.

I know how to pass to 'target' new or current, to pass the action to a form or tree view, but what I actually need, before that, is to create several steps which will be on different "views" of this wizard, like a form with 'next' and 'back' buttons.

Is there some example code I can look for that?

I've searched on default addons, with no success.


Solution

  • The best way to do this is to have a popup target=new and have a statusbar on top right which will be clickable/not readonly (so that the user can go back). And depending on the state of your record, show the appropriate fields

    You can of course create a popup, and when the user clicks next destroy that popup and create another one but that doesn't seem like a good idea to me.