跳至内容
菜单
此问题已终结

The new ir_attachments are now stored as base64 strings. If i convert them manually to PDF, they work and can be opened. How can i override the download behaviour so that the files are decoded from base64 and converted to PDF when i download them? 

here is my xml, the field is attachment_ids:

string="Ansökningskomplettering">
name="application_completion_main_group">
name="rfq_id" />
name="external_verification" invisible="1"/>
name="rfq_applicant" invisible="1"/>
name="rfq_coapplicant" invisible="1"/>
name="type" />
name="state" />
name="applicant_id" domain="[('id', 'in', [rfq_applicant, rfq_coapplicant])]"/>
name="attachment_ids" widget="many2many_binary"/>
class="oe_edit_only">
name="manual_attachment_ids" widget="many2many_binary" string="Bifoga filer"/>


class="o_horizontal_separator ml-0 mt-4 mb-3 text-uppercase fw-bolder small">Meddelande till kund

name="application_completion_comment" string="Meddelande till kund" header="Meddelande till kund">
name="comment" nolabel="1"/>


形象
丢弃
相关帖文 回复 查看 活动
0
8月 23
1973
2
1月 24
14336
1
6月 24
1642
0
5月 24
2042
0
8月 23
2919