Odoo Help


Uploading images in yaml - yml

Peter Langenberg
on 5/18/15, 3:19 AM 608 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 ?).




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

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... 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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: 608 times
Last updated: 5/25/15, 9:06 AM