|
|
@ -19,4 +19,14 @@ |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template id="portal_kala_user_dropdown" name="kala user dropdown" inherit_id="portal.user_dropdown"> |
|
|
|
<xpath expr="//span[@t-if='_user_name']" position="replace"> |
|
|
|
<t t-if="user_id.partner_id.firstname"> |
|
|
|
<span t-attf-class="#{_user_name_class}" t-esc="user_id.partner_id.firstname"/> |
|
|
|
</t> |
|
|
|
<t t-if="not user_id.partner_id.firstname"> |
|
|
|
<span t-if="_user_name" t-attf-class="#{_user_name_class}" t-esc="user_id.name[:23] + '...' if user_id.name and len(user_id.name) > 25 else user_id.name"/> |
|
|
|
</t> |
|
|
|
</xpath> |
|
|
|
</template> |
|
|
|
</odoo> |