Odoo 上传附件 attachment models.py: attachment = fields.Many2many('ir.attachment',string=u'附件') views.py: <fieldname="attachment" filename="store_fname" widget="many2many_binary"/>