Contributors mailing list archives
Re: calendar colorsby
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
El mar., 13 oct. 2020 a las 7:07, Akim Juillerat (<email@example.com>) escribió:
Hello communityIs 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.0Thanks
--camptocampINNOVATIVE SOLUTIONSBY OPEN SOURCE EXPERTSAkim JuilleratBusiness solutions Software developer+41 62 544 03 78
+41 21 619 10 10