コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3173 ビュー

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

アバター
破棄