Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1953 Vizualizări

I have build an functionallity to send an email to the user to give reminder on the task I am facing an error how can I render an data so I use this code on my xml code to render but the data on the task is not showing how can I show my task detail when I am sending an email




this is my .py file code function

 template_id = self.env.ref('task_deadline_reminder.task_reminder_email_template')

context = {'partner_name': 'John Doe'}

template_id.with_context(ctx=context).send_mail(user.id, force_send=True)
 

 


this is my xml file code

                       

 

                            

                               

 

                               

 

                               

 

                               

 

                            

                        

                       

 

                       

 

                    

TaskProject NameDeadline${ctx.get('partner_name')}

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 25
2379
1
apr. 25
3415
1
apr. 25
4214
1
apr. 25
1725
4
mar. 25
6817