Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4300 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 24
14002
0
jun. 18
5599
0
jul. 17
2634
1
dec. 16
4188
1
nov. 22
4417