https://github.com/vshn/odootools
VSHN-specific Odoo tool suite
https://github.com/vshn/odootools
vshn-project-ignore
Last synced: 6 months ago
JSON representation
VSHN-specific Odoo tool suite
- Host: GitHub
- URL: https://github.com/vshn/odootools
- Owner: vshn
- License: bsd-3-clause
- Created: 2021-10-26T09:53:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-17T15:22:37.000Z (7 months ago)
- Last Synced: 2024-11-17T16:31:35.504Z (7 months ago)
- Topics: vshn-project-ignore
- Language: Go
- Homepage: https://odootools.vshn.net
- Size: 991 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[][build]

[][releases]
[][releases]
[][license][build]: https://github.com/vshn/odootools/actions?query=workflow%3ATest
[releases]: https://github.com/vshn/odootools/releases
[license]: https://github.com/vshn/odootools/blob/master/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.
## Development
### Documentation
See some development notes in [CONTRIBUTING.md](./CONTRIBUTING.md) and [docs/](./docs/)
### Run the tool
First, you need to export Odoo settings:
```bash
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
```bash
ns=vshn-odoo-prod
nstest=vshn-odoo-test
sa=odootools-deployeroc new-project $ns
oc new-project $nstestoc -n $ns create sa $sa
# Allow the deployer user to manage deployments in test namespace
oc -n $ns policy add-role-to-user admin -z $sa --rolebinding-name admin
oc -n $nstest policy add-role-to-user admin -z $sa --rolebinding-name admin
oc -n $nstest policy add-role-to-user system:image-pusher -z $sa
oc -n $nstest patch rolebinding admin --type='json' -p='[{"op": "replace", "path": "/subjects/1/namespace", "value":"'$ns'"}]'
oc -n $nstest patch rolebinding system:image-pusher --type='json' -p='[{"op": "replace", "path": "/subjects/0/namespace", "value":"'$ns'"}]'# Get SA token
oc -n $ns sa get-token $sa
```
Once this is set up, you can use the token in the CD settings: https://github.com/vshn/odootools/settings/secrets/actions