no_destroy doesn't have same behavior of gtk client

Bug #1117364 reported by Christopher Ormaza - (Ecuadorenlinea.net)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Expired
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Christopher Ormaza - (Ecuadorenlinea.net) (chris-ormaza) wrote :

I make this patch, please review and merge in 6.1 adn trunk if possible

description: updated
Amit Parik (amit-parik)
affects: openobject-client-web → openerp-web
Revision history for this message
Ravi Gadhia (OpenERP) (rga-openerp) wrote :

Hello Christopher Ormaza

    'nodestroy' was introduce for stop crashing GTK client when form view button(type object) return action. if we not return 'nodestroy':True in action it will crash client for osv object but web client gracefully handle it. default behavior of osv_memory object button return action with target new open new dialog and close current one.

    hence you are right in web client we can not open child wizard and keep open parent wizard also. but usability point of view it's fine for web client to not keep open readonly parent wizard.

    so would you please provide any use case. currently I set bug as incomplete.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Christopher Ormaza - (Ecuadorenlinea.net) (chris-ormaza) wrote :

For example, y make some wizard that configure or select some items to process, in my case user want to check in a print report, I made a report from wizard but when you press action of report wizard close, and configuration that user checks is lost

Maybe in another context we have to make a report and continue with the wizard process, print checks, etc.

Regards
Christopher Ormaza

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Web because there has been no activity for 60 days.]

Changed in openerp-web:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions

Patches