diff options
| author | jke-openerp <jke@openerp.com> | 2013-12-20 15:50:28 +0100 |
|---|---|---|
| committer | jke-openerp <jke@openerp.com> | 2013-12-20 15:50:28 +0100 |
| commit | 698a74c0a2f4c2c7df3b6f1d268758ce4166b68d (patch) | |
| tree | 70e84357346f87a74349be0825c6ccb96a25ec17 /addons/web_calendar/static/src/xml | |
| parent | e4469e0aeb13a7b43efdc0dba1db64ce9eb2f96d (diff) | |
[FIX] Fixe according to aprs review
bzr revid: jke@openerp.com-20131220145028-2vy4t19uxgrh9jw4
Diffstat (limited to 'addons/web_calendar/static/src/xml')
| -rw-r--r-- | addons/web_calendar/static/src/xml/web_fullcalendar.xml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/addons/web_calendar/static/src/xml/web_fullcalendar.xml b/addons/web_calendar/static/src/xml/web_fullcalendar.xml index d0c156b0133..4102113ebaa 100644 --- a/addons/web_calendar/static/src/xml/web_fullcalendar.xml +++ b/addons/web_calendar/static/src/xml/web_fullcalendar.xml @@ -26,16 +26,17 @@ </t> <t t-name="CalendarView.sidebar.responsible"> <div class="oe_calendar_all_responsibles"> - <div t-foreach="filters" class="oe_calendar_responsible" > - <input type="checkbox" name="selection" t-att-value="filters_value.value" checked="checked" /> - <t t-if="filters_value.value == -1"> - <span><i t-attf-class="fa fa-users fa-fw cal_avatar" ></i></span> + <div t-foreach="filters" class="oe_calendar_responsible" > + <t t-if="filters_value.value>=-1"> <!-- don't display if no it given --> + <input type="checkbox" name="selection" t-att-value="filters_value.value" checked="checked" /> + <t t-if="filters_value.value == -1"> + <span><i t-attf-class="fa fa-users fa-fw cal_avatar" ></i></span> + </t> + <t t-if="(filters_value.value != -1) && filters_value.avatar_model "> + <img t-att-src="'/web/binary/image?model=' + filters_value.avatar_model + '&field=image_small&id=' + filters_value.value" class="cal_avatar"/> + </t> + <span t-attf-class="cal_opacity underline_color_#{filters_value.color}" ><t t-esc="filters_value.label" /></span> </t> - <t t-if="filters_value.value != -1"> - <img t-att-src="'/web/binary/image?model=res.partner&field=image_small&id=' + filters_value.value" class="cal_avatar"/> - </t> - <span t-attf-class="cal_opacity underline_color_#{filters_value.color}" ><t t-esc="filters_value.label" /></span> - </div> </div> </t> |
