[FIX] mail: groupby was using a wrong create_id field
Grouping mail activities by "Created by" was grouping on the "create_uid" field which is always the admin user. New groupby groups using the "create_user_id" field which is the real id of the creator. opw-1886369 closes odoo/odoo#27718
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
<field name="activity_type_id"/>
|
||||
<separator/>
|
||||
<filter string="My Activities" name="activities_my"
|
||||
domain="[('create_uid', '=', uid)]"/>
|
||||
domain="[('create_user_id', '=', uid)]"/>
|
||||
<separator/>
|
||||
<filter string="Late Activities" name="activities_overdue"
|
||||
domain="[('date_deadline', '<', context_today().strftime('%Y-%m-%d'))]"
|
||||
@@ -168,7 +168,7 @@
|
||||
<separator/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter string="Deadline" name="date_deadline" context="{'group_by': 'date_deadline'}"/>
|
||||
<filter string="Created By" name="createdby" context="{'group_by': 'create_uid'}"/>
|
||||
<filter string="Created By" name="createdby" context="{'group_by': 'create_user_id'}"/>
|
||||
<filter string="Activity Type" name="activittype" context="{'group_by': 'activity_type_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
@@ -198,7 +198,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<calendar string="Activity" date_start="date_deadline" color="activity_type_id">
|
||||
<field name="res_name"/>
|
||||
<field name="create_uid"/>
|
||||
<field name="create_user_id"/>
|
||||
<field name="summary"/>
|
||||
</calendar>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user