تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4858 أدوات العرض

Hi,

I would like to change the notification mail layout used in Orders/Send by Email and Invoices/Send by Email.
I have created my custom template, inherited 'mail.compose.message' class and changed the default custom layout
in send_mail method :

notif_layout = self._context.get('custom_layout')

with mine custom layout name is:

notif_layout = "my_custom_module.my_custom_layout_id"

The problem is when the _notify method is called in "res.partner" and tries to find the base template, my custom template is not found by this name. Is there something wrong with the name in the notif_layout variable?


Does anyone have any idea or experience with this?

Thank you.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
8
يوليو 24
23083
1
سبتمبر 21
3831
0
نوفمبر 20
3293
7
سبتمبر 19
35516
1
مارس 15
6774