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="priority" eval="2"/>
<field name="arch" type="xml">
<calendar string="Leads Generation"
And here there are not any Salesperson strings. Where is it?
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.
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
|Asked: 11/12/14, 6:52 AM|
|Seen: 1267 times|
|Last updated: 3/16/15, 8:10 AM|