Odoo Help


How to add file attachement field ? [Closed]

Yassine TEIMI
on 4/2/15, 10:30 AM 656 views

The Question has been closed for reason: not a real question

Serpent Consulting Services Pvt. Ltd.
on 04/02/2015 12:31:46

This is how to do it :

on .py : 

 'piece_jointe': fields.binary('Image'),
 'fname': fields.char('Nom fichier', size=32),
and on xml side: 

<field name="piece_jointe" filename="fname"/> <field name="fname" invisible="1" class="oe_inline oe_right"/>

On 4/2/15, 10:37 AM


No,no, it was just my openerp server who was'nt able to restart, I resolved the problem but shutting it down and restaarting the server properly. thanks.

Yassine TEIMI
on 4/2/15, 10:42 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/2/15, 10:30 AM
Seen: 656 times
Last updated: 4/3/15, 4:34 AM