openerp - Calling own custom methods through Odoo API using xmlrpc -


i add function on res_partner.py called "testing". using xmlrpc calling methods

$models->execute_kw($db, $uid, $password, 'res.partner', 'testing', array(array(intval($id)));

i got error

'res.partner' object has no attribute 'testing'

can me figure out please ?

thank you

$models->execute_kw($db, $uid, $password, 'res.partner', 'read', array(array(intval($id)));

that execute method has not testing attribute.

you can use attribute read , write

i hope understand


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -