Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Working with Odoo 10

You're reading from   Working with Odoo 10 One stop guide for your enterprise needs

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781786462688
Length 426 pages
Edition 2nd Edition
Tools
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 (18) Chapters Close

Preface 1. Setting Up Odoo 10 FREE CHAPTER 2. Installing Your First Application 3. Exploring Customer Relationship Management in Odoo 10 4. Purchasing with Odoo 5. Making Goods with Manufacturing Resource Planning 6. Configuring Accounting Finance 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 vs Enterprise Edition appA. Locating additional Odoo resources

Integrating with the Odoo API

Often, when developing custom applications, you are going to need to create solutions that involve interoperability with other systems and platforms. For example, perhaps you need to integrate with a third-party CRM application to create records inside of Odoo. The API is also quite useful for data migration.

Connecting to the API

Accessing the API is relatively easy. We begin with the code that imports the required libraries and creates a connection to the Odoo server:

    import xmlrpclib 
    url = 'http://localhost:8069' 
    db = 'SILK-DEV' 
    username = 'admin' 
    password = 'admin' 
    info =  
    xmlrpclib.ServerProxy('https://localhost:8089/start').start() 
    url, db, username, password = \ 
        info['host'], info['database'], info['user'], info['password'] 

Filtering and returning records through the API

We can use our same domain filters that we used...

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
Banner background image