Raphael Collet (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-v62_config 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-v62_config/+merge/100961

Implementation of new configuration wizards, one per application.
This branch defines the behavior of an 'ir.actions.act_window' with 'target' 
set to 'inline'.  The view is shown as common views (on current page), except 
that the views switcher, the edition buttons (save/cancel), the pager, and the 
sidebar are not shown.  This is used by the new configuration wizards.

-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-v62_config/+merge/100961
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-v62_config.
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js	2012-03-27 15:13:57 +0000
+++ addons/web/static/src/js/views.js	2012-04-05 13:10:43 +0000
@@ -112,12 +112,13 @@
         }
         var type = action.type.replace(/\./g,'_');
         var popup = action.target === 'new';
+        var inline = action.target === 'inline';
         action.flags = _.extend({
-            views_switcher : !popup,
-            search_view : !popup,
-            action_buttons : !popup,
-            sidebar : !popup,
-            pager : !popup,
+            views_switcher : !popup && !inline,
+            search_view : !popup && !inline,
+            action_buttons : !popup && !inline,
+            sidebar : !popup && !inline,
+            pager : !popup && !inline,
             display_title : !popup
         }, action.flags || {});
         if (!(type in 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