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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
inserting data in yml you do not use !python block.. it is !record block...
after that .. pretty much the same syntax as xml files...
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.