Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4317 Ansichten

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Jan. 24
14027
0
Juni 18
5615
0
Juli 17
2640
1
Dez. 16
4201
1
Nov. 22
4434