Skip to Content
Menu
This question has been flagged

Namaste, I want two attachment in mail compose wizard by default,

I am passing this context.

ctx = dict(
            default_model='purchase.order',
            default_res_id=self.id,
            default_use_template=bool(template),
            default_template_id=template.id,
            default_composition_mode='comment',
        )

currently we can only pass one template in deafult template_id, I want to pass two template. How can I achieve this?

Avatar
Discard

The reason we are passing one template is because it's Many2one field. If you want to pass multiple template than add new field Many2Many into the model where this template does reflects to link multiple templates

Related Posts Replies Views Activity
1
May 23
2558
10
Aug 19
2690
3
May 18
3783
1
Jul 24
468
0
Aug 20
1253