Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Odoo

You're reading from   Learn Odoo A beginner's guide to designing, configuring, and customizing business applications with Odoo

Arrow left icon
Product type Paperback
Published in Oct 2019
Publisher Packt
ISBN-13 9781789536898
Length 504 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Greg Moss Greg Moss
Author Profile Icon Greg Moss
Greg Moss
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Setting Up Odoo 12 FREE CHAPTER 2. Installing Your First Application 3. Exploring Customer Relationship Management in Odoo 12 4. Purchasing with Odoo 5. Making Goods with Manufacturing 6. Configuring Accounting - Finance Options 7. Administering an Odoo Installation 8. Implementing the Human Resources Application 9. Understanding Project Management 10. Creating Advanced Searches and Dashboards 11. Building a Website with Odoo 12. Implementing E-Commerce with Odoo 13. Customizing Odoo for Your Business 14. Modifying Documents and Reports 15. Discovering Custom Odoo Modules 16. Comparative Analysis of Community versus Enterprise Editions 17. Locating Additional Odoo Resources 18. Other Books You May Enjoy

Integrating applications using Odoo's API

Sometimes, you want to connect to Odoo's data from an external application. The Odoo API is useful for these scenarios. It utilizes XML-RPC, which is a protocol for remote procedure calls, and it uses XML syntax to connect with the data on an Odoo server.

You can access Odoo's API via languages such as Python, Ruby, PHP, and Java. Let's look at an example in Python 3. (If you don't have Python installed already, go to http://www.python.org/download.) Pull up your Python Terminal and type the following:

import xmlrpc.client
info = xmlrpc.client.ServerProxy('https://demo.odoo.com/start').start()
url,db,username,password=\
info['host'],info['database'],info['user'],info['password']

If you've been following along, you'll know that you've just created...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime