Odoo Help

1

Uploading images in yaml - yml

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

Peter




0

Bole

--Bole--
2395
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

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

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

Register

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)

Stats

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