nodestroy in ir.actions.act_window

Asked by JM ABE

hello! Just because it seems that the param nodestroy of ir.actions.act_window works in gtk client but not in web.
Do you know how to keep open a window of an osv_memory object (when the target is new) and open an other window with a form view? Lot of thanks if you have the solution.

for now my method called by a button return this:

return {
        'type': 'ir.actions.act_window',
        'name': 'Edit form',
        'view_mode': 'form',
        'view_type': 'form',
        'res_model': 'mymodule.myobject',
        'target': 'new',
        'nodestroy': True,
        }

It's working with the gtk client but not in the web interface.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Try setting target=current for main wizard.

Revision history for this message
JM ABE (jm-abe) said :
#2

Thanks for your answer.
Yes It works with target=current but with target=current I don't know how to hide Save, discard, etc ... buttons because they are useless with a wizard.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

If there is a popup, you make sure you open up a wizard, not any regular form.

The Buttons are by design/architecture!

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask JM ABE for more information if necessary.

To post a message you must log in.