since i am trying to create invoices through xmlrpc, i can pick up values for
the partner as below:
sock_common = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/common')
uid = sock_common.login('dev', 1, 'admin')
sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/object')
#sock.execute('dev', 1, 'admin', 'account.invoice', 'create', invoice_str)
fields = ['name', 'active', 'vat', 'ref' , 'property_account_receivable']
#fields to read
data = sock.execute('dev', 1, 'admin', 'res.partner', 'read', member_id, fields)
(example from dev book)
i can pass the partner id from a variable.
still would be nice to know how to do it in class in py ... perhaps bit more
research
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=49912#49912
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users