require_once('ripcord/ripcord.php');
$common = ripcord::client($url.'/xmlrpc/2/common');
$uid = $common->authenticate($db, $username, $password, array());
$models = ripcord::client("$url/xmlrpc/2/object");
$sales_order = $models->execute_kw($db, $uid, $password,
'sale.order', 'action_button_confirm',
array(array(25918))); //Quotation ID here
var_dump($sales_order);
am getting the error as
website_sale_autopay_models.py", line 29, in action_button_confirm if (r.payment_tx_id and r.payment_tx_id.state == 'done' and r.payment_acquirer_id) or (context.get('is_sale_order')): AttributeError: 'NoneType' object has no attribute 'get' ".
While this code is running fine on different database.