diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-02-04 16:58:33 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-02-08 09:08:11 +0100 |
| commit | 09659cca30a98dd9a522c53918e389e0d8f667eb (patch) | |
| tree | 8a90c656871f57c70ef6d575d557535b123ed74f /addons/web/static/src/xml/base_common.xml | |
| parent | 9931234e835e2ff89325789bc3cffb246390919d (diff) | |
[ADD] web: Company swicher button on systray
If the user has multicompany rights and more than one allowed
companies, the full company name is displayed in the topbar. When you
click on it, there is a dropdown with the name of the other companies.
Clicking on another company name makes you switch on it and reload the page
Diffstat (limited to 'addons/web/static/src/xml/base_common.xml')
| -rw-r--r-- | addons/web/static/src/xml/base_common.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base_common.xml b/addons/web/static/src/xml/base_common.xml index eb455f34708..2e73f9a153e 100644 --- a/addons/web/static/src/xml/base_common.xml +++ b/addons/web/static/src/xml/base_common.xml @@ -123,4 +123,13 @@ </t> </t> +<t t-name="SwitchCompanyMenu"> + <li class="o_switch_company_menu"> + <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="#"> + <span class="oe_topbar_name"/> <span class="caret"></span> + </a> + <ul class="dropdown-menu" role="menu"/> + </li> +</t> + </templates> |
