Merge lp:~openerp-dev/openobject-client-web/6.0-opw-574167-msh into lp:openobject-client-web

Proposed by Mohammed Shekha(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-client-web/6.0-opw-574167-msh
Merge into: lp:openobject-client-web
Diff against target: 12 lines (+1/-1)
1 file modified
addons/openerp/controllers/form.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client-web/6.0-opw-574167-msh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+104898@code.launchpad.net

Description of the change

Hello,

Fixed the issue of reloading on cancel button, as we have passed False in close_popup.

As this creating some problems like when you have install module from list view by using object buttons, after installing the module when you click "Cancel" buttons it will not reload the view and module still shown in 'To be install' state.

So changed the code to behave like GTK, as GTK reloads the view on Cancel button.

Thanks.

To post a comment you must log in.

Unmerged revisions

4805. By Mohammed Shekha(Open ERP)

[FIX]Fixed the used of reload view when user press cancel button.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/controllers/form.py'
2--- addons/openerp/controllers/form.py 2012-03-20 12:19:28 +0000
3+++ addons/openerp/controllers/form.py 2012-05-07 12:46:23 +0000
4@@ -506,7 +506,7 @@
5 return res
6
7 import actions
8- return actions.close_popup(reload=False)
9+ return actions.close_popup(reload=True)
10 def button_action_save(self, _, params):
11 params.id = False
12 params.button = None