odootools

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Build Go version Version Maintainability GitHub downloads License

odootools

odootools is a small tool that allows you to calculate overtime based on your attendances. It has VSHN-specific business rules integrated that are otherwise calculated manually.

Simply login with your Odoo credentials, configure the report settings and generate your reports.

It's currently aimed at Odoo 8.

Run the tool

First, you need to export Odoo settings:

export ODOO_URL=https://...
export ODOO_DB=...

You can run the tool in different ways:

  1. using make run (uses go run).
  2. using make run.docker (uses docker run)
  3. using a configuration of your favorite IDE
Deploy to OpenShift

Setup the project and deploy user

oc new-project odootools-preview
oc new-project odootools-prod

ns=odootools-prod
sa=odootools-deployer

oc -n $ns create sa $sa

# Allow the deployer user to manage deployments in preview namespace
oc -n $ns policy add-role-to-user admin -z $sa --rolebinding-name admin
oc -n odootools-preview patch rolebinding admin --type='json' -p='[{"op": "replace", "path": "/subjects/1/namespace", "value":"'$ns'"}]'

# Get SA token
oc -n $ns sa get-token $sa

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
web

Jump to

Keyboard shortcuts

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