Browse Source

Merge pull request #381 from Comunitea/8.0_web_easy_switch_scroll

[8.0][FIX]web_easy_switch_company: Added scroll.
pull/389/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
f8700edd16
  1. 5
      web_easy_switch_company/static/src/css/switch_company.css
  2. 3
      web_easy_switch_company/static/src/xml/switch_company.xml
  3. 1
      web_easy_switch_company/view/res_users_view.xml

5
web_easy_switch_company/static/src/css/switch_company.css

@ -0,0 +1,5 @@
.switch_company_menu {
height: auto;
max-height: 50vh;
overflow-x: hidden;
}

3
web_easy_switch_company/static/src/xml/switch_company.xml

@ -29,7 +29,7 @@
</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<ul class="dropdown-menu switch_company_menu">
<t t-foreach="widget.companies" t-as="company">
<li>
<a class="easy_switch_company_company_item"
@ -47,4 +47,3 @@
</t>
</template>

1
web_easy_switch_company/view/res_users_view.xml

@ -17,6 +17,7 @@
<template id="assets_backend" name="web_easy_switch_company assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_easy_switch_company/static/src/js/switch_company.js"></script>
<link rel="stylesheet" href="/web_easy_switch_company/static/src/css/switch_company.css"/>
</xpath>
</template>

Loading…
Cancel
Save