[IMP] Make web_environment_ribbon more generic

By creating the ribbon div on the fly, this module doesn't depend
anymore on the webclient structure.
This commit is contained in:
Sylvain GARANCHER
2016-09-16 16:01:37 +02:00
committed by Pedro M. Baeza
parent 519d966b2d
commit 5a2b8e045e
3 changed files with 27 additions and 36 deletions

View File

@@ -15,12 +15,4 @@
</xpath>
</template>
<!-- Add ribbon to page -->
<template id="body_with_ribbon_test" name="ribbon_test web.webclient_bootstrap"
inherit_id="web.webclient_bootstrap">
<xpath expr="//div[@class='openerp openerp_webclient_container oe_webclient']" position="before">
<div class="test-ribbon"/>
</xpath>
</template>
</odoo>