appuio-odoo-adapter

command module
v0.0.0-...-ad2e321 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: BSD-3-Clause Imports: 26 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
odoomock
Package odoomock is a generated GoMock package.
Package odoomock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL