php - How to update the tax amount in invoice using XML-RPC? -
i using odoo 8.0. accessing odoo models using xml-rpc api in php. have updated percentage of tax in invoice line items. updated successfully, problem tax amount not updated in subtotal.
here code is:
<?php include("../ripcord-master/ripcord.php"); $url = "http://localhost:8069"; $db="migration_three"; $username = "admin"; $password = "admin"; $models = ripcord::client("$url/xmlrpc/2/object"); $common = ripcord::client("$url/xmlrpc/2/common"); $uid = $common->authenticate($db, $username, $password, array()); $invoice_id = 28; $validate = $models->execute_kw($db, $uid, $password, 'account.invoice','button_reset_taxes',array($invoice_id)); print_r($validate); ?>
it returns 1. tax amount not updated in subtotal view. in advance
we don't need mention key invoice_id. change update code into
$validate = $models->execute_kw($db, $uid, $password, 'account.invoice','button_reset_taxes',array($invoice_id)); print_r($validate);
Comments
Post a Comment