Yogesh(Open ERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-900622-ysa into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #900622 in OpenERP Web: "When click on create and cancel gives warnings"
  https://bugs.launchpad.net/openerp-web/+bug/900622

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-900622-ysa/+merge/84740
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-900622-ysa/+merge/84740
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-900622-ysa.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2011-12-07 10:45:03 +0000
+++ addons/web/static/src/js/view_form.js	2011-12-07 11:23:31 +0000
@@ -2033,7 +2033,7 @@
     },
     load_views: function() {
         var self = this;
-        
+
         var modes = this.node.attrs.mode;
         modes = !!modes ? modes.split(",") : ["tree"];
         var views = [];
@@ -2191,7 +2191,8 @@
         var self = this;
         if (!this.dataset)
             return [];
-        this.save_any_view();
+        if (this.dirty)
+            this.save_any_view();
         var val = this.dataset.delete_all ? [commands.delete_all()] : [];
         val = val.concat(_.map(this.dataset.ids, function(id) {
             var alter_order = _.detect(self.dataset.to_create, function(x) {return x.id === id;});
@@ -2347,7 +2348,7 @@
         this.dataset.on_unlink.add_last(function(ids) {
             self.on_ui_change();
         });
-        
+
         this.is_setted.then(function() {
             self.load_view();
         });

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to