Odoo Help


This community 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.


How to change email counter

Dr Obx
on 12/4/15, 11:26 AM 312 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--
| 6 7 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 an 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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