wizard.interface returning _action_open_window does not work fine

Asked by Eduardo Ruiz

version 5.0
client gtk

wizard.interface wich returns _action_open_window only works fine returning 'view_mode':'tree,form'.

You can view this behaviour in stock/wizard_return.py. If you change 'view_mode':'tree,form', >> 'view_mode':'form,tree', in def _action_open_window(,) the wizard fails. It doesn't show an error but it purpose is not done. In this example, the new generated picking hasn't got lines ..

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Vora (Serpent Consulting Services)
Solved:
Last query:
Last reply:
Revision history for this message
Best Jay Vora (Serpent Consulting Services) (jayvora) said :
#1

Hi,

You have been missing a single point here.

Form view always opens a new entry until you pass a res_id to the returning dictionary.

Kindly, add 'res_id':int(res) to the cdictionary, It will serve the purpose.

Thank you.

Revision history for this message
Eduardo Ruiz (readylan) said :
#2

Hi,

You are right, it works fine. Thank you very much, Jay.