Hello Jack Buckon
Improvise:
Note sure how you execute through the xml-rpc,
By default manner to update to qty on product, odoo will check the company warehouse and it's location. for that check the below code [Assume you're update the qty on same manner].
import xmlrpc.client
url = '' # URL
database = '' # Database
uid = '' # Username
password = '' # password
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(database, uid, password, {})
models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))
# search the product
product = models.execute_kw(database, uid, password, 'product.product', 'search', [[('id', '=', 285)]])
# Changes the Product Quantity by creating/editing corresponding quant.
stock_change_product_qty_id = models.execute_kw(database, uid, password, 'stock.change.product.qty', 'create', [{
'product_id': 1,
'product_tmpl_id': 285,
'new_quantity': 11,
}])
# Method Trigger: change_product_qty
models.execute_kw(database, uid, password, 'stock.change.product.qty', 'change_product_qty', [stock_change_product_qty_id])
Or if you have any other location to update the product qty, then you can achieved this by the create the inventory adjustment through xml-rpc.
Thanks..
For more information Contact us :- https://kanakinfosystems.com/odoo-development-services