Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
14617 Zobrazení

Hello Everyone,

I am new in ODOO. I have a requirement from my customer to open the form view in a wizard by clicking the create button(Red button). Please let me know whether it is possible to achieve?

Avatar
Zrušit
Nejlepší odpověď

Hi Abhishek,

If you are working with ODOO 9, go through this:

https://www.odoo.com/documentation/9.0/howtos/backend.html#wizards


You can also put target = new in your form view's action, in XML file.

Like this 

<act_window id="launch_the_wizard"

name="Launch the Wizard"

src_model="context.model.name"

res_model="wizard.model.name"

view_mode="form"

target="new"

key2="client_action_multi"/>


You can also refer this link:

https://www.odoo.com/forum/help-1/question/how-to-run-a-wizard-from-python-code-73074


Let me know if you have any issue in that.

Thanks,

Chandni

Avatar
Zrušit
Autor Nejlepší odpověď

Hi Chandni,

Thanks for your helpful answer. Basically I am dealing with Odoo-8. Moreover I want to open an existing form view in a wizard.

For example:

The purchase order form view is opened when we click on the "Create" button displayed at the top(in red colour) into a new page. Instead of opening into a new page I want to open it into a wizard(want to ignore the page redirection).

Please let me know whether it will be possible to do? I believe the "Create" button is the part of ORM and developers do not have the permission to change any part coming from ORM. Please let me know any other work around is there or not to achieve it?


Thanks


Avatar
Zrušit

Hi,

Refer that create button, when u click on it, it will fire action. U can inherit tht action, and add target=New to that action. Instead of form view. You will be able to open your wizard.

Related Posts Odpovědi Zobrazení Aktivita
2
úno 23
1969
2
zář 15
5596
1
bře 15
3748
2
bře 15
11342
3
kvě 24
3291