Skip to content

vshn/appuio-odoo-adapter

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Jan 28, 2023
Jul 4, 2023
Jul 5, 2023
Feb 24, 2023
May 4, 2023
Nov 17, 2022
Jan 26, 2022
Jan 19, 2022
Jul 28, 2022
Feb 22, 2022
May 5, 2023
Nov 17, 2022
Jan 19, 2022
May 10, 2022
Feb 2, 2022
Feb 1, 2022
Jan 31, 2022
Jan 23, 2024
Jan 23, 2024
Feb 1, 2022
May 4, 2023
Jan 19, 2022
Feb 2, 2022
Jan 19, 2022
Jan 19, 2022
Feb 2, 2022
Feb 2, 2022
Jan 26, 2023

Repository files navigation

Odoo Adapter for APPUiO Cloud

Build Go version Version Maintainability Coverage GitHub downloads

APPUiO Cloud is based on OpenShift 4 and can be considered a "Namespace as a Service". It follows a pay-per-use pricing model, however APPUiO Cloud does not include or require a specific accounting or billing software (ERP).

Instead, the ERP software is pluggable and APPUiO Cloud specifies the "interface". Such a plugin is called "adapter" in this context.

VSHN uses currently Odoo as its ERP software and this repository "implements" the adapter to serve as a bridge between APPUiO Cloud and Odoo.

Quick Start

Generate Invoices

kubectl -n appuio-reporting port-forward svc/reporting-db 5432 &
kubectl -n vshn-odoo-test port-forward svc/odoo 8080:8000 &

DB_USER=$(kubectl -n appuio-reporting get secret/reporting-db-superuser -o jsonpath='{.data.user}' | base64 --decode)
DB_PASSWORD=$(kubectl -n appuio-reporting get secret/reporting-db-superuser -o jsonpath='{.data.password}' | base64 --decode)

export OA_DB_URL="postgres://${DB_USER}:${DB_PASSWORD}@localhost/reporting?sslmode=disable"
export OA_ODOO_URL="http://admin:${ODOO_PASSWORD}@localhost:8080/VSHNProd_2022-01-31"

go run . invoice --year 2022 --month 1

Documentation

Architecture documentation: https://kb.vshn.ch/appuio-cloud

Adapter documentation: https://vshn.github.io/appuio-odoo-adapter