Vaibhav (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-dashboard-shortcut-vda into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-dashboard-shortcut-vda/+merge/79647

Add/Remove Dashboad Shortcut.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-dashboard-shortcut-vda/+merge/79647
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-dashboard-shortcut-vda.
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js	2011-10-17 12:23:35 +0000
+++ addons/web/static/src/js/views.js	2011-10-18 05:30:28 +0000
@@ -441,6 +441,8 @@
                 if (!self.action.name && fvg) {
                     self.$element.find('.oe_view_title').text(fvg.arch.attrs.string || fvg.name);
                 }
+                if(!self.action.flags.low_profile)
+                    self.shortcut_add_remove();
         });
     },
     shortcut_check : function(view) {
@@ -459,7 +461,6 @@
                     return shortcut.res_id === self.session.active_id; })) {
             $shortcut_toggle.addClass("oe-shortcut-remove");
         }
-        this.shortcut_add_remove();
     },
     shortcut_add_remove: function() {
         var self = this;

_______________________________________________
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