Merge lp:~openerp-dev/openerp-web/7.0-opw-596129-msh into lp:openerp-web/7.0

Proposed by Mohammed Shekha(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/7.0-opw-596129-msh
Merge into: lp:openerp-web/7.0
Diff against target: 41 lines (+16/-6)
1 file modified
addons/web/static/src/js/views.js (+16/-6)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/7.0-opw-596129-msh
Reviewer Review Type Date Requested Status
Ruchir Shukla(BizzAppDev) (community) Needs Fixing
Stefan Rijnhart (Opener) (community) Approve
Stéphane Bidoul (Acsone) (community) test Approve
Yannick Vaucher @ Camptocamp (community) test Approve
Mohammed Shekha(Open ERP) (community) Needs Resubmitting
Martin Trigaux (OpenERP) Pending
Nicolas Vanhoren (OpenERP) Pending
Xavier (Open ERP) Pending
Review via email: mp+180067@code.launchpad.net

Description of the change

Hello,

Fixed the issue of form reloading when wizard is closed.

Demo:- Accounting -> Payment -> Payment Order -> open form and click on "Select invoices to Pay" button it opens wizard, click on search and then again new wizard is opened add Entries to many2many field and click on "Add to Payment Order" button, Form should be reloaded so that new lines fetched in line_ids.

For further reference go through bugs:
https://bugs.launchpad.net/openerp-web/+bug/1155525
https://bugs.launchpad.net/openobject-addons/+bug/1191547

Thanks.

To post a comment you must log in.
4013. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Great work! Thank you for fixing this.

review: Approve (test)
4014. By Martin Trigaux (OpenERP)

[FIX] vertical alignment of fields on firefox (opw #590181)

4015. By Martin Trigaux (OpenERP)

[MERGE] [FIX] reload form if button has option reload_on_button

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Works for me. Thanks!

review: Approve (test)
4016. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4017. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4018. By Martin Trigaux (OpenERP)

[FIX] tree view: correct toggeling of hierarchic tree, correctly pass ids

4019. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4020. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4021. By Martin Trigaux (OpenERP)

[FIX] tree views: rename variable parent-id to avoid conflicts with record fields name (eg: account.account)

4022. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4023. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Found the following problem with this change:

Go to a payment order and click 'Select invoices to pay'. In the popup, or in the next popup, press ESC or click the upper right corner to cancel the operation.

Click 'Select invoices to pay' again. You now get

    TypeError: this.get_action_manager(...) is undefined

Without this change, the error does not occur.

review: Needs Fixing
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Nice catch Stefan. I confirm the issue, although with a different error message in my case:

      Uncaught TypeError: Cannot call method 'get_title' of undefined

-sbi

review: Needs Fixing
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

OPW ticket reopened. Please fix this issue

review: Needs Fixing
4024. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4025. By Mohammed Shekha<email address hidden>

[FIX]Refixed the issue of form reload on wizard close, clicking on cross sign on dialog breaks wizard re-opening, dialog should be null when close is triggered.

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello Stefan Rijnhart and Stéphane Bidoul,

Thanks for drawing attention on this issue.

I have refixed the issue, would you please retry to test your scenarios with this branch.

Thanks.

review: Needs Resubmitting
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

It works!

Thanks

review: Approve (test)
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Works for me too.

review: Approve (test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks, I confirm that this fixes the problem that we observed in the first version.

review: Approve
Revision history for this message
Ruchir Shukla(BizzAppDev) (ruchir.shukla) wrote :

with this branch it has solved the problem but it introduces new bug.
Bug in multiple popup weird behavior
Lets say in case of the multiple popup. in second wizard there is a problem in footer .
E.G load translation menu . when you select language . and load it . As a result it will popup new wizard .
in this new wizard it has a problem as there are 2 footers one for init state and second is done state .
some how "OR" is there from init state in second popup.

I have provided fix in https://code.launchpad.net/~ruchir.shukla/openerp-web/7.0-opw-596129-fix-destroy and already requested to merge fix into this branch. Please do needful.

review: Needs Fixing

Unmerged revisions

4025. By Mohammed Shekha<email address hidden>

[FIX]Refixed the issue of form reload on wizard close, clicking on cross sign on dialog breaks wizard re-opening, dialog should be null when close is triggered.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js 2013-06-21 12:44:49 +0000
+++ addons/web/static/src/js/views.js 2013-09-04 10:15:42 +0000
@@ -364,6 +364,7 @@
364 * @return {*}364 * @return {*}
365 */365 */
366 ir_actions_common: function(executor, options) {366 ir_actions_common: function(executor, options) {
367 var self = this;
367 if (this.inner_widget && executor.action.target !== 'new') {368 if (this.inner_widget && executor.action.target !== 'new') {
368 if (this.getParent().has_uncommitted_changes()) {369 if (this.getParent().has_uncommitted_changes()) {
369 return $.Deferred().reject();370 return $.Deferred().reject();
@@ -373,14 +374,23 @@
373 }374 }
374 var widget = executor.widget();375 var widget = executor.widget();
375 if (executor.action.target === 'new') {376 if (executor.action.target === 'new') {
376 if (this.dialog_widget && !this.dialog_widget.isDestroyed()) {377 if(this.dialog == null) {
378 if (this.dialog_widget && !this.dialog_widget.isDestroyed()) {
379 this.dialog_widget.destroy();
380 }
381 this.dialog_stop();
382 this.dialog = new instance.web.Dialog(this, {
383 dialogClass: executor.klass,
384 });
385 if (options.on_close) {
386 this.dialog.on("closing", null, function() {
387 self.dialog = null;
388 options.on_close.apply(null, arguments)
389 });
390 }
391 } else {
377 this.dialog_widget.destroy();392 this.dialog_widget.destroy();
378 }393 }
379 this.dialog_stop();
380 this.dialog = new instance.web.Dialog(this, {
381 dialogClass: executor.klass,
382 });
383 this.dialog.on("closing", null, options.on_close);
384 this.dialog.dialog_title = executor.action.name;394 this.dialog.dialog_title = executor.action.name;
385 if (widget instanceof instance.web.ViewManager) {395 if (widget instanceof instance.web.ViewManager) {
386 _.extend(widget.flags, {396 _.extend(widget.flags, {