Odoo Help


Uploading images in yaml - yml

Peter Langenberg
on 5/18/15, 3:19 AM 798 views

when I use xml for demo data, I can use : 

<field name="image" type="base64" file="base/static/img/res_partner_1-image.jpg"/>

This line to use images.

But how can I do this for test purposes in yml ? (Is it possible to avoid a python block ?).


On 5/25/15, 9:06 AM

 inserting data in yml you do not use !python block.. it is !record block... 
after that .. pretty much the same syntax as xml files... 

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: 5/18/15, 3:19 AM
Seen: 798 times
Last updated: 5/25/15, 9:06 AM