summaryrefslogtreecommitdiff
path: root/addons/lunch/views
diff options
context:
space:
mode:
authorVishnu Thuletiya <vtu@odoo.com>2020-05-06 06:21:14 +0000
committerBarad Mahendra <mba@openerp.com>2020-05-13 12:37:48 +0000
commit9a830432dbdf678c732ebe6e91135dad5ff2e6d2 (patch)
tree54596a0d2567c75fcd37f719e8707db18031f832 /addons/lunch/views
parent25cb4c18e5f49b83014f6b1abf63044a6ab6c2cf (diff)
[IMP] various: Use the new avatar widget in kanban view
The purpose of task is to update the 'user/employee avatar' to the new widget in all the kanban view across all modules. The below new widget are introduced for avatar: - many2one_avatar_user (for user_id fields) - many2one_avatar_employee (for employee_id fields) which displays the avatar (i.e. picture) of a user/employee in front of his name and clicking on the avatar will open a chatbox to message that specific user/employee. So in this commit, For each kanban view with a user or employee avatar, replaced it by the field with the new 'many2one_avatar' widget. TaskID: 2244928 Related Enterprise PR: https://github.com/odoo/enterprise/pull/10420 closes odoo/odoo#50789 Closes: #50789 Related: odoo/enterprise#10420 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/lunch/views')
-rw-r--r--addons/lunch/views/lunch_cashmove_views.xml4
-rw-r--r--addons/lunch/views/lunch_orders_views.xml4
2 files changed, 6 insertions, 2 deletions
diff --git a/addons/lunch/views/lunch_cashmove_views.xml b/addons/lunch/views/lunch_cashmove_views.xml
index 945402a30eb..de3ad7ae11a 100644
--- a/addons/lunch/views/lunch_cashmove_views.xml
+++ b/addons/lunch/views/lunch_cashmove_views.xml
@@ -77,7 +77,9 @@
<t t-esc="record.date.value"/>
</div>
<div class="col-6">
- <img t-att-src="kanban_image('res.users', 'image_128', record.user_id.raw_value)" t-att-title="record.user_id.value" t-att-alt="record.user_id.value" class="oe_kanban_avatar o_image_24_cover float-right"/>
+ <div class="float-right">
+ <field name="user_id" widget="many2one_avatar_user"/>
+ </div>
</div>
</div>
</div>
diff --git a/addons/lunch/views/lunch_orders_views.xml b/addons/lunch/views/lunch_orders_views.xml
index f423f003cc8..f9c614471f8 100644
--- a/addons/lunch/views/lunch_orders_views.xml
+++ b/addons/lunch/views/lunch_orders_views.xml
@@ -91,7 +91,9 @@
</a>
</div>
<div class="col-6">
- <img t-att-src="kanban_image('res.users', 'image_128', record.user_id.raw_value)" t-att-title="record.user_id.value" t-att-alt="record.user_id.value" class="oe_kanban_avatar o_image_24_cover float-right"/>
+ <span class="float-right">
+ <field name="user_id" widget="many2one_avatar_user"/>
+ </span>
</div>
</div>
</div>