[IMP] digest: active internal users in tip

One of the first tip is about using @ in chatter.
It should only take active internal users who already have logged in.
Currenly it takes all the users (eg: portal, inactive etc)

This commit will allow only internal users to be shown in the list.

Task-1918364
This commit is contained in:
Parth Choksi
2019-05-07 07:04:34 +00:00
parent 8776306e80
commit 9e6cb6e62f
+1 -1
View File
@@ -15,7 +15,7 @@
<field name="sequence">1</field>
<field name="tip_description" type="html">
<div>
% set users = object.env['res.users'].search([], limit=10, order='id desc')
% set users = object.env['res.users'].search([('share', '=' , False)], limit=10, order='id desc')
% set channel_id = object.env.ref('mail.channel_all_employees').id
<strong style="font-size: 16px;">Did you know...?</strong>
<div style="font-size: 14px;">You can ping colleagues by tagging them in your messages using "@". They will be instantly notified.<br/>