[FIX] display form switch
authorAntony Lesuisse <al@openerp.com>
Wed, 20 Jun 2012 16:41:44 +0000 (18:41 +0200)
committerAntony Lesuisse <al@openerp.com>
Wed, 20 Jun 2012 16:41:44 +0000 (18:41 +0200)
bzr revid: al@openerp.com-20120620164144-xo8enp0i4hmqf50l

addons/web/static/src/css/base.css
addons/web/static/src/css/base.sass
addons/web/static/src/xml/base.xml

index 5cccbea..1a5e0b1 100644 (file)
   padding: 2px;
   content: "i";
 }
+.openerp .oe_view_manager .oe_view_manager_switch .oe_vm_switch_form:after {
+  content: "m";
+}
 .openerp .oe_view_manager .oe_view_manager_switch .oe_vm_switch_graph:after {
   font-family: "mnmliconsRegular" !important;
   font-size: 21px;
index fa47fc6..16586e4 100644 (file)
@@ -854,6 +854,8 @@ $colour4: #8a89ba
             .oe_vm_switch_list:after, .oe_vm_switch_tree:after
                 padding: 2px
                 content: "i"
+            .oe_vm_switch_form:after
+                content: "m"
             .oe_vm_switch_graph:after
                 font-family: "mnmliconsRegular" !important
                 font-size: 21px
index 66bd4a9..e293ffc 100644 (file)
                 </td>
                 <td>
                     <ul class="oe_view_manager_switch oe_button_group oe_right">
-                        <t t-if="widget.views_src.length > 2" t-foreach="widget.views_src" t-as="view">
-                          <li t-if="view.view_type != 'form'" class="oe_e"><a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="_t('Switch to ') + (view.label || view.view_type)">
+                        <t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
+                          <li class="oe_e"><a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="_t('Switch to ') + (view.label || view.view_type)">
                             </a></li>
                         </t>
                     </ul>