Skip to Content
Menu
This question has been flagged
5115 Rodiniai
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();
}
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
saus. 19
7943
1
kov. 17
4710
0
lapkr. 15
3429
3
liep. 25
2811
1
spal. 24
2049