I'm using Odoo as my CRM & Magento as my web application. I've been able to Insert data correctly in Odoo. However, While i was trying to update one of existing data on Odoo with one of my field as reference from magento it didn't update but when i used the Odoo generated ID i was able to update my data. I've already created field in Odoo which bears the same ID i have in my magento database & I want to update it based on magento's ID.
Here's the snippet of my Code
$data = array("userID"=>$userID, "Address"=>$user_address);
$models->execute_kw($db, $uid, $password, 'res.partner', 'write',
array(array(1258), array($data)));