Odoo Help


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


Uploading images in yaml - yml

Peter Langenberg
on 5/18/15, 3:19 AM 499 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 5/18/15, 3:19 AM
Seen: 499 times
Last updated: 5/25/15, 9:06 AM