Odoo Third-party Integrations using AWS Lambda Function

Having the business managed through industry-specific software could be a primary choice for some due to familiarity, low maintenance, and cost-effectiveness. However, down the line, as a company grows, integrating an appropriate ERP software becomes unavoidable to manage all the operational processes- lead management, fcB2B connections, inventory control, tracking contract labor, etc.

We have performed over 2000+ Odoo Third-party Integrations while fulfilling clients’ requirements to sync their industry-specific software to an easy-to-use ERP software.

Integrate Odoo with Legacy Systems or Industry-specific software.

Why perform Odoo Third-party Integrations using AWS Lambda Function?

AWS Lambda is what we call a Function-as-a-Service offering from Amazon. It is different from what Python users might get confused with the language feature in Python called lambda (anonymous functions). (Source)

It is a serverless compute service that runs your code automatically in response to events such as a user checking out an eCommerce website. One doesn’t have to worry about servers, virtual machines, or containers. Upload the code, and AWS Lambda will host it for you.

We chose to accomplish Odoo Third-party Integrations using Lambda functions because:

  • It supports runtime API allowing us to use any given language, tool, or framework.
  • One can use any third-party library, even native ones.
  • One can also package any code (frameworks, SDKs, libraries, and more) as a Lambda Layer and manage and share them easily across multiple functions.
  • Completely automated administration
  • Integrated security model

Let’s consider a use case of the AWS Lambda function in Python script.

Odoo – MEWS Connector using AWS Lambda Function

Mews, a hospitality management software, lets hoteliers manage everything from booking to check out, enhancing the guest experience.

Use Case:

The requirement was to integrate Mews software running for group hotels into software that could manage customers and accounting functions. And what could be better than Odoo handling accounting functions?

Already using Odoo for Accounting? Here are Top 10 Custom Odoo Accounting Apps.

How was the Odoo Third-Party Integrations executed for Mews?

AWS Lambda function will work as a bridge to sync data between Odoo and Mews. A cron job triggering your process at regular intervals will execute the results.

  • A Python script will run using the ODOO-RPC library along with a config file that stores the credentials of Mews and Odoo.
  • This config file is stored on the S3 bucket. Using the config file, we have established the connection between Mews and Odoo and run the lambda function.
  • The AWS Lambda function contains a Python script for importing the data for Mews in Odoo, which is uni-directional.
    • Customer
    • Chart of accounts
    • Taxes
    • Invoice
  • Lambda function script by AWS has a memory limit, when the script executes the Python compiler’s memory must not exceed the limit. We have also handled the limit successfully in our code in order to handle larger data-set.

Contact our functional experts to know more about the benefits of integrating Odoo with any third-party software using the AWS Lambda function.

Janvi has an overall experience of 2+ years with Backend, frontend, and data migration in Odoo.

Leave a Reply

Your email address will not be published. Required fields are marked *

aktiv_arrow

Unlock Free

Odoo Consultation

Claim your 2 hours free consultation
with our Odoo experts.
No Obligations!