Merge lp:~openerp-dev/openerp-web/trunk-asset-bug-fix-ado into lp:openerp-web

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/trunk-asset-bug-fix-ado
Merge into: lp:openerp-web
Diff against target: 45 lines (+8/-4)
2 files modified
addons/web/static/src/js/chrome.js (+3/-3)
addons/web/static/src/js/view_form.js (+5/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/trunk-asset-bug-fix-ado
Reviewer Review Type Date Requested Status
OpenERP R&D Web Team Pending
Review via email: mp+217912@code.launchpad.net

Description of the change

Hello,

Fix following issues:
1). Reload form on click of button if option reload_whole_on_button is supplied from o2m field & button is not appear in center issue &
2). Fixed the issue of warning message in that warning popup was not working
Regards,
Amit

To post a comment you must log in.
3999. By Antony Lesuisse (OpenERP)

[MERGE] saas-4 up to <email address hidden>

4000. By Antony Lesuisse (OpenERP)

[FIX] web_kanban_gauge needs raphaeljs temporarly back in assets_backend

4001. By Antony Lesuisse (OpenERP)

[FIX] qweb loading concat mode only, increase cache age to one day

4002. By Fabien Meghazi (OpenERP)

[FIX] database manager

4003. By Géry Debongnie

[MERGE] merge the last changes to improve the 'stat buttons' support in web

Many small tweaks/css changes to correctly display the stat buttons in
various situations (with/without icons, with/without strings, with sub
widgets, ...)

4004. By jke-openerp

[MERGE] Merge with trunk-cal-V8-jke. - Change field datetime into date or datetime according to that event type is in all day or not...

4005. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

4006. By Fabien Meghazi (OpenERP)

[ADD] openerp.loadBundle()

4007. By Fabien Meghazi (OpenERP)

[IMP] do_warn on ClientAction not found

4008. By Fabien Meghazi (OpenERP)

[FIX] jQuery.ui - boostrap conflicts

4009. By Mohammed Shekha

[IMP] Jinja template for database manager

4010. By Fabien Meghazi (OpenERP)

[REM] html_template and render_bootstrap_template()

4011. By Fabien Meghazi (OpenERP)

[FIX] Do not self close empty elements that are not html void elements

4012. By Amit Dodiya (OpenERP)

[FIX] 1) Fixed the issue of warning message in that warning popup was not working Merge branch: lp:~openerp-dev/openerp-web/trunk-reactivate_closed_contract-jpr 2) reload form on click of button if option reload_whole_on_button is supplied from o2m field

Unmerged revisions

4012. By Amit Dodiya (OpenERP)

[FIX] 1) Fixed the issue of warning message in that warning popup was not working Merge branch: lp:~openerp-dev/openerp-web/trunk-reactivate_closed_contract-jpr 2) reload form on click of button if option reload_whole_on_button is supplied from o2m field

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/js/chrome.js'
2--- addons/web/static/src/js/chrome.js 2014-04-23 12:37:35 +0000
3+++ addons/web/static/src/js/chrome.js 2014-05-08 10:21:34 +0000
4@@ -316,6 +316,7 @@
5 this.error = error;
6 },
7 display: function() {
8+ var self = this;
9 error = this.error;
10 error.data.message = error.data.arguments[0];
11
12@@ -323,14 +324,13 @@
13 size: 'medium',
14 title: "OpenERP " + (_.str.capitalize(error.type) || "Warning"),
15 buttons: [
16- {text: _t("Ok"), click: function() { this.$el.parents('.modal').modal('hide'); }},
17+ {text: _t("Ok"), click: function() { self.$el.parents('.modal').modal('hide'); self.destroy();}},
18 {text: error.data.arguments[2], click: function() {
19 window.location.href='#action='+error.data.arguments[1];
20- this.$el.parents('.modal').modal('hide');
21+ self.destroy();
22 }}
23 ],
24 }, QWeb.render('CrashManager.warning', {error: error})).open();
25- this.destroy();
26 }
27 });
28 instance.web.crash_manager_registry.add('openerp.exceptions.RedirectWarning', 'instance.web.RedirectWarningHandler');
29
30=== modified file 'addons/web/static/src/js/view_form.js'
31--- addons/web/static/src/js/view_form.js 2014-05-02 12:33:55 +0000
32+++ addons/web/static/src/js/view_form.js 2014-05-08 10:21:34 +0000
33@@ -4357,7 +4357,11 @@
34 else
35 return $.when();
36 }).done(function () {
37- if (!self.o2m.options.reload_on_button) {
38+ if (self.o2m.options.reload_whole_on_button){
39+ self.handle_button(name, id, function(){
40+ self.o2m.dataset.parent_view.recursive_reload();
41+ });
42+ }else if (!self.o2m.options.reload_on_button) {
43 self.handle_button(name, id, callback);
44 }else {
45 self.handle_button(name, id, function(){