Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Project Management - User avatars not visable in client portal

By
Kal
on 4/11/15, 2:19 PM 477 views

In client portal view user avatars are not showing for projects. On the user side all avatars and user names can be seen in all projects and tasks but in the client portal view it removes the avatars/users and has a single icon (a crossed out camera). Only when rolling over the crossed out camera icon does it reveal a tool tip, showing the user a particular task is assigned to.

How can I apply the same view of avatars as a user does for the client portal in project management?  I attempted to alter views, permissions, groups (portal group) with no success. I was convinced there was a permission somewhere that can be turned on/off.

0
Kal
On 4/12/15, 7:08 PM

So far Ive located what seems to be the source below.....Would this be best to create a module and set custom permissions for this view for the portal group?



Settings>User Interface>Views>project.project.kanban

<?xml version="1.0"?>
<kanban class="oe_background_grey">
                    <field name="effective_hours"/>
                    <field name="planned_hours"/>
                    <field name="name"/>
                    <field name="members"/>
                    <field name="use_tasks"/>
                    <field name="user_id"/>
                    <field name="date"/>
                    <field name="color"/>
                    <field name="task_count"/>
                    <field name="task_ids"/>
                    <field name="alias_id"/>
                    <field name="alias_name"/>
                    <field name="alias_domain"/>
                    <field name="doc_count"/>
                    <templates>
                        <t t-name="kanban-box">
                            <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_project oe_kanban_global_click">
                                <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
                                    <span class="oe_e">í</span>
                                    <ul class="oe_dropdown_menu">
                                        <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Project Settings</a></li></t>
                                        <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
                                        <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
                                    </ul>
                                </div>
                                <div class="oe_kanban_content">
                                    <h4 class="text-center"><strong><field name="name"/></strong></h4>
                                    <div class="text-center oe_kanban_alias" t-if="record.alias_name.value and record.alias_domain.value">
                                        <small><i class="fa fa-envelope-o"/> <field name="alias_id"/></small>
                                    </div>
                                    <div class="oe_kanban_project_list">
                                        <a t-if="record.use_tasks.raw_value" name="449" type="action" style="margin-right: 10px">
                                            <t t-raw="record.task_count.raw_value"/> Tasks
                                        </a>
                                    </div>
                                    <div class="oe_kanban_project_list">
                                        <a t-if="record.doc_count.raw_value" name="attachment_tree_view" type="object" style="margin-right: 10px"> <field name="doc_count"/> Documents</a>
                                    </div>
                                    <div class="oe_kanban_footer_left">
                                        <span groups="project.group_time_work_estimation_tasks">
                                            <span class="oe_e">R</span>
                                            <t t-esc="Math.round(record.effective_hours.raw_value)"/>/<t t-esc="Math.round(record.planned_hours.raw_value)"/> <field name="company_uom_id"/>
                                        </span>
                                        <span t-if="record.date.raw_value">
                                            <span class="oe_e">N</span>
                                            <field name="date"/>
                                        </span>
                                    </div>
                                    <div class="oe_kanban_project_avatars">
                                        <t t-foreach="record.members.raw_value.slice(0,11)" t-as="member">
                                            <img t-att-src="kanban_image('res.users', 'image_small', member)" t-att-data-member_id="member"/>
                                        </t>
                                    </div>
                                </div>
                            </div>
                        </t>
                    </templates>
 </kanban>




Looks like its here:

 <div class="oe_kanban_project_avatars">
<t t-foreach="record.members.raw_value.slice(0,11)" t-as="member">
<img t-att-src="kanban_image('res.users', 'image_small', member)" t-att-data-member_id="member"/>
</t>
</div>

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/11/15, 2:19 PM
Seen: 477 times
Last updated: 4/12/15, 7:08 PM