2017-10-18 33 views
1

我們怎樣才能添加附件上傳文件,並要像odoo表單內簡單的現場Attahment一個形式裏面 - odoo 10

PS:我不想在附件上頂從我想要它就像我們在odoo中添加字段的方式。

感謝,

+0

你嘗試過這麼遠嗎? – CZoellner

回答

0

嘗試fields.Binary

例:

data_file = fields.Binary(string='File') 

希望它會幫助你。

0

你可以試試這個:

attachment_ids = fields.Many2many('ir.attachment', 'attachment_id',string='Attachments')