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?

Portretas
Atmesti

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 Rodiniai Veikla
1
geg. 23
3506
10
rugp. 19
3422
3
geg. 18
4650
2
geg. 25
5787
1
liep. 24
1430