Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
may 23
3309
10
ago 19
3281
3
may 18
4415
2
may 25
5627
1
jul 24
1260