コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5006 ビュー
I was set some breakpoints in odoo ir.attachment and found most of the time consuming was before the "create" method.
This is the Android code:
HashMap map = new HashMap();
map.put("res_model", res_model);
map.put("res_name", res_name);
map.put("type", "binary");
map.put("res_field","image");
map.put("res_id", res_id);
map.put("name", "image");
map.put("datas", image2Base64(imagePath));
try {
    models.execute("execute_kw", asList(
        db, uid, password,
        "ir.attachment", "create",
        asList(map)
    ));
} catch (XmlRpcException e) {
    e.printStackTrace();
}
アバター
破棄
関連投稿 返信 ビュー 活動
3
1月 19
7790
1
3月 17
4595
0
11月 15
3323
1
10月 24
1832
1
4月 24
1900