Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2101 Lượt xem

I'm trying to create an POS order via XMLRPC and than validate it, this is my code:

val order = client().execute(client_config,"execute_kw", listOf(
        db, uid, p, "stock.picking", "search",
        listOf<Any>(
            listOf<Any>(listOf("name", "=", "WH/POS/00001"))
        )))

client().execute(client_config, "execute_kw", listOf(
        database, uid, password, "stock.picking", "do_new_transfer",
    listOf<Any>(order)
))

However I have the error:  AttributeError: type object 'stock.picking' has no attribute 'do_new_transfer'

Someone know how solve this error ora validate it in another way?

Ảnh đại diện
Huỷ bỏ