Skip to content

dbruehlmeier/demo-odoo-rpc

Repository files navigation

PoC N8N-Odoo

The goal of this Proof-of-Concept (PoC) is to test if calculated fields are consistently updated when using N8N (with JSON-RPC) to update a contact.

Installation

  • Install Docker Compose
  • Clone this repo
  • Install the Ansible Odoo Scripts curl -L https://raw.githubusercontent.com/mint-system/ansible-build/main/roles/odoo_scripts/files/install | bash

Scenario 1: Direct installation

In this scenario, the module is installed directly when launching Odoo, by adding --init demo_rpc_write to the launch command in Docker Compose.

  • Run docker-compose -f docker-compose_with-installation.yml up

Results

  • For both methods (using the @api.depends decorator and overwriting the write() method), the calculated fields are consistently updated
  • Tested with Odoo 16 and Odoo 17

Scenario 2: Installation with Ansible

In this scenario, the module is installed after launching Odoo, by launching docker-odoo-init with the running container.

  • Run docker-compose -f docker-compose_without-installation.yml up
  • Run docker-odoo-init -c "demo-odoo-rpc_odoo_1" -d "poc" -i "demo_rpc_write"

Results

  • For both methods (using the @api.depends decorator and overwriting the write() method), the calculated fields are consistently updated if the container is restarted.
  • Without a restart, Odoo seems to fall into an undefined state, which caused different problems after each test run.
  • Tested with Odoo 16

Setup

Odoo

  • Open: http://localhost:8069
  • Master Password: master4Odoo
  • Database Name: poc
  • Email: admin
  • Password: admin
  • Demo data: check
  • Click: Create database
  • Login: admin/admin

N8N

Run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages