@@ -25,11 +25,6 @@ def _get_message_create_valid_field_names(self):
2525 # NOTIFICATION API
2626 # ------------------------------------------------------
2727
28- # this method change on odoo 19.0
29- # def _notify_by_email_get_base_mail_values(self, message,
30- # recipients_data, additional_values=None):
31- # TODO verify the code with the change doc_to_followers
32-
3328 def _notify_by_email_get_base_mail_values (
3429 self , message , recipients_data , additional_values = None
3530 ):
@@ -96,13 +91,12 @@ def _notify_get_recipients(self, message, msg_vals=False, **kwargs):
9691 pdata = {
9792 "id" : data .get ("id" ),
9893 "active" : data .get ("active" ),
99- "share" : data .get ("share" ),
10094 "notif" : data .get ("notif" ) and data .get ("notif" ) or notif ,
10195 "type" : msg_type ,
10296 "is_follower" : data .get ("is_follower" ),
103- "uid" : False ,
10497 }
105- rdata .append (pdata )
98+ data .update (pdata )
99+ rdata .append (data )
106100 return rdata
107101
108102 def _notify_get_recipients_classify (
@@ -116,19 +110,15 @@ def _notify_get_recipients_classify(
116110 if not is_from_composer or skip_adding_cc_bcc :
117111 return res
118112 ids = []
119- customer_data = None
113+ customer_data = []
120114 for rcpt_data in res :
121115 if rcpt_data ["notification_group_name" ] == "customer" :
122- customer_data = rcpt_data
123- else :
124- ids += rcpt_data ["recipients" ]
116+ customer_data .append (rcpt_data )
125117 if not customer_data :
126118 customer_data = res [0 ]
127119 customer_data ["notification_group_name" ] = "customer"
128- customer_data ["recipients" ] = ids
129- else :
130- customer_data ["recipients" ] += ids
131- return [customer_data ]
120+ customer_data ["recipients_ids" ] = ids
121+ return customer_data
132122
133123 def _notify_thread (self , message , msg_vals = False , ** kwargs ):
134124 if message .message_type == "notification" :
0 commit comments