portal_my.xml 2.38 KB
Newer Older
Arturo Jasso Origel committed
1 2 3
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
4
        <template id="portal_my_home_it" name="Portal My Home : IT" inherit_id="portal.portal_my_home" priority="100">        
5
            <xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
Arturo Jasso Origel committed
6
                <t t-call="portal.portal_docs_entry">
7 8 9
                <t t-set="title">Tecnologías de la información</t>
                    <t t-set="url" t-value="'/my/ti'" />
                    <t t-set="background" t-value="'/helpdesk_morsa/static/src/img/ti.svg'"/>
Arturo Jasso Origel committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
                </t>
            </xpath>
        </template>

        <template id="portal_my_home_menu_ticket" name="Portal layout : ticket menu entries" inherit_id="portal.portal_breadcrumbs" priority="60">
            <xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
                <li t-if="page_name == 'soporte' or soporte" t-attf-class="breadcrumb-item #{'active ' if not soporte else ''}">
                    <a t-if="soporte" t-attf-href="/my/soporte?{{ keep_query() }}">Soporte Técnico</a>
                    <t t-else="">Soporte Técnico</t>
                </li>
                <li t-if="soporte" class="breadcrumb-item active">
                    <t t-esc="soporte.name" t-if="soporte.name" />
                    <t t-else=""><em>Soporte Técnico</em></t>
                </li>
               
                <li t-if="page_name == 'erp' or asistencia" t-attf-class="breadcrumb-item #{'active ' if not asistencia else ''}">
                    <a t-if="asistencia" t-attf-href="/my/erp?{{ keep_query() }}">Asistencia ERP</a>
                    <t t-else="">Asistencia ERP</t>
                </li>
                <li t-if="asistencia" class="breadcrumb-item active">
                    <t t-esc="asistencia.name" t-if="asistencia.name" />
                    <t t-else=""><em>Asistencia ERP</em></t>
                </li>
                <li t-if="page_name == 'ti' or ti" t-attf-class="breadcrumb-item #{'active ' if not ti else ''}">
                    <a t-if="ti" t-attf-href="/my/911?{{ keep_query() }}">TI 911</a>
                    <t t-else="">TI 911</t>
                </li>
                <li t-if="ti" class="breadcrumb-item active">
                    <t t-esc="ti.name" t-if="ti.name" />
                    <t t-else=""><em>TI 911</em></t>
                </li>
            </xpath>
        </template>

        

    </data>
</odoo>