Odoo Help


How can I change a specific label in a calendar view?

Juan Formoso
on 11/12/14, 6:52 AM 1,829 views

I'm trying to modify a label in a calendar view. This label uses to appear in every calendar view, just below the minicalendar on the right side of the screen. Obviously, the string of the label is different depending on the selected calendar view. In my case, I would like to change the label which appears in the calendar view of the section opportunities (crm). The label is Salesperson. I have located the file which contents the code of the calendar view, but this one is composed by only a few lines:

<!-- CRM Lead Calendar View -->
<record model="ir.ui.view" id="crm_case_calendar_view_leads">
    <field name="name">CRM - Leads Calendar</field>
    <field name="model">crm.lead</field>
    <field name="priority" eval="2"/>
    <field name="arch" type="xml">
        <calendar string="Leads Generation"
            date_start="date_action" color="user_id">
            <field name="name"/>
            <field name="partner_name"/>

And here there are not any Salesperson strings. Where is it?


Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.


Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 


We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :


  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 11/12/14, 7:27 AM


The label is comes from the attribute "color" of the calendar tag. See the below

<calendar string="Leads Generation"  date_start="date_action" color="user_id">

In the crm.lead "user_id" is labelled with "Salesperson" thats why in calendar view it is appear.

If you want different label then just changed the field of the "color" attribute. It will changed label on calendar view.

I hope it is useful to you.

Thank you! But this case is not the same as other views, because I am not able to modify the string of the color field, how can I do this?

Juan Formoso
on 11/12/14, 9:54 AM

Hi, are you do not want to change the field "user_id" ?

Emipro Technologies Pvt. Ltd.
on 11/12/14, 10:02 AM

if yes then you have two option to achieve your objective. 1) make one field which is fields.function and as like the user_id and set string as your desire and set that fields.function field into color="...." 2) Just inherit crm.lead model and give new defination of user_id field and give new string into .py file.

Emipro Technologies Pvt. Ltd.
on 11/12/14, 10:04 AM

If No then just change the field name into "color" attribute of the calendar tag thats it. like color="xxxx".

Emipro Technologies Pvt. Ltd.
on 11/12/14, 10:05 AM

That's right. Thank you!

Juan Formoso
on 11/12/14, 10:41 AM

Ludo - Neobis

--Ludo - Neobis--
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--


Ludo - Neobis
On 11/12/14, 7:29 AM

Isn't the salesperson the same as user_id field on crm leads? I don't know if you can change that easily, for I have not worked with javascript before.

Furthermore, does CRM not override the default calendar JS file from the web_calendar module? If so, you could check that file.

Yes, user_id means salesperson on crm leads and opportunities. Isn't there another way to change the label better than modifying js?

Juan Formoso
on 11/12/14, 9:59 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

1 follower(s)


Asked: 11/12/14, 6:52 AM
Seen: 1829 times
Last updated: 3/16/15, 8:10 AM