Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: calendar colors

by
Iván Todorovich
- 13/10/2020 15:52:22
Hi Akim,

We've done this for 12.0, and very recently in 14.0.
Not for 13.0, though.

I'm not quite happy with the 12.0 implementation, as it requires several overrides, but it works. You can check it out here: https://github.com/druidoo/druidoo-addons/tree/12.0/web_calendar_color_field

The 14.0 version is much simpler, since Odoo improved the code a bit and partially introduced this feature through filters. Hence I take the opportunity to PR to OCA: https://github.com/OCA/web/pull/1703

Best,

Iván Todorovich


El mar., 13 oct. 2020 a las 7:07, Akim Juillerat (<akim.juillerat@camptocamp.com>) escribió:
Hello community

Is there a module or anything that's already been done to select the color of a calendar event according to a type in recent versions (looking for v13.0)?
For example, in the event modules, the colors are used according to the event type but there's no way to say Type1=red and Type2=blue. This could also be useful in the leaves module to display leaves according to their type (paid leave=green, sickness=red).

I couldn't find anything useful except old tutorials on how to do it on version 8.0

Thanks

--
camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Akim Juillerat
Business solutions Software developer
+41 62 544 03 78

Camptocamp SA
Leberngasse 21
4600 Olten
Switzerland
+41 21 619 10 10

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference