Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4271 Vizualizări

I'm querying every invoice that is later then today with XML-RPC (OpenERP 7)

The command looks like this:

sock = xmlrpc.client.ServerProxy('http://openerp.sapico.me:8069/xmlrpc/object')
        args = [('state', '=', 'open'),('date_due','<',now_str),] 
        ids = sock.execute(dbname, uid, pwd, model, 'search', args)
        # READ PARTNER DATA
        fields = ['partner_id','date_invoice','date_due', 'state', 'invoice_line', 'amount_total',  'comment']

Is there a way to let XML-RPC include the child elements? Because all it returns right now (from the demo file), is this:

[{"date_due": "2014-08-11", "amount_total": 847.0, "date_invoice": "2014-07-12", "partner_id": [31, "Agrolait, Michel Fletcher"], "id": 4, "state": "open", "comment": false, "invoice_line": [8]}]

 

Because i can't find a lot of documentation about XML-RPC, i'd appreciate adding any resources (except the default CRUD+Search about res.partner) or any information about how i can execute SQL query's through XML-RPC.

Thanks in advance

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
ian. 24
13990
0
iun. 18
5570
0
iul. 17
2629
1
dec. 16
4182
1
nov. 22
4402