Arnaud Pineux (OpenERP) has proposed merging lp:~openerp-dev/openerp-web/7.0-base-calendar-api into lp:openerp-web/7.0.
Requested reviews: qdp (OpenERP) (qdp) For more details, see: https://code.launchpad.net/~openerp-dev/openerp-web/7.0-base-calendar-api/+merge/143080 This branch allows to always have the same color for a specific user in the calendar view. Unfortunately this change also create more collision than before. It is possible for two or more users to have the same color. This is due to a small set of color. -- https://code.launchpad.net/~openerp-dev/openerp-web/7.0-base-calendar-api/+merge/143080 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openerp-web/7.0-base-calendar-api.
=== modified file 'addons/web_calendar/static/src/js/calendar.js' --- addons/web_calendar/static/src/js/calendar.js 2012-12-18 15:16:57 +0000 +++ addons/web_calendar/static/src/js/calendar.js 2013-01-14 11:18:24 +0000 @@ -254,7 +254,7 @@ if (this.color_map[key]) { return this.color_map[key]; } - var index = _.keys(this.color_map).length % this.COLOR_PALETTE.length; + var index = key % this.COLOR_PALETTE.length; var color = this.COLOR_PALETTE[index]; this.color_map[key] = color; return color;
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp