Hi, I would like to update the stock quantity of a product.
When I try this:
obj = self.env['stock.change.product.qty'].create({'product_id':19,'product_tmpl_id':19,'new_quantity':10.0})
obj.change_product_qty()
I'm getting 'NoActiveSqlTransaction: SAVEPOINT can only be used in transaction blocks'
What's wrong?
Thanks