Odoo Help


How to change email counter

Dr Obx
on 12/4/15, 11:26 AM 672 views

Hi guys,

Where can i find the script which is counting emails, I would like to change it to show exact figures instead of a 99+.

If anyone know where to find it please ?


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/4/15, 3:15 PM

You need to change this qweb client template:

<t t-name="Menu.needaction_counter">
<div id="menu_counter" class="badge pull-right">
<t t-if="widget.needaction_counter &gt; 99"> 99+ </t>
<t t-if="widget.needaction_counter &lt;= 99"> <t t-esc="widget.needaction_counter"/> </t>

to this in a new file like templates.xml:

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

<t t-name="Menu.needaction_counter">
<div id="menu_counter" class="badge pull-right"> 
<t t-esc="widget.needaction_counter"/>


to be loaded in __openerp__.py in the qweb key of the dict:

    'qweb' : [

Weird, it works on one machine and it won't on another ? Anyway, thank you Axel. Works beautifully :)

Dr Obx
on 12/7/15, 5:06 AM

The machine where didn't work may need some page reload to update the new template extension loaded when the page get loaded. Happy to help you

Axel Mendoza
on 12/7/15, 6:12 AM

Yes Axel, apparently that's the problem. I'll find out what needs to be reloaded :) Thank you

Dr Obx
on 12/10/15, 8:10 AM

One more thing I would like to change, timeout, it should refresh either after each action or after certain period of time.Do you have any ideas where can i change it ?

Dr Obx
on 12/10/15, 9:10 AM

No, I have no clue

Axel Mendoza
on 12/10/15, 9:34 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 12/4/15, 11:26 AM
Seen: 672 times
Last updated: 12/7/15, 4:33 AM