Skip to main content

Otter - The Odoo time tracker

Project description

Otter - The Odoo time tracker

Note: This project is still in an early development stage!

Installation

TODO: When PIP package available.an

Usage

Login to Odoo

When using Otter for the first time or when your Odoo session expired, login to Odoo:

otter login

Follow the instructions on the screen. Enter the Odoo URL, select a database from the list, enter your username and your password. If all data was entered correctly, you are logged in to Odoo and your session will stored locally (your password will not be stored!).

NOTE: Currently, the login is only valid for about a week.

Logout from Odoo

Use the following command to logout from Odoo. This will delete your locally stored session.

otter logout

Sync from and to Odoo

Before you can start using Otter, you will need to sync the remote Odoo projects and tasks to the local Otter database:

otter sync

This is also the command to use whenever you want to sync your local time tracking records to Odoo. By default, Otter will only sync the local records up to the last day ('yesterday'). This prevents you from accidentally syncing records that you are still going work on on the current work day. Sometimes - for example at the end of a week or a month - you also want to sync your records of the current work day. This can be done by providing the date option with the value TODAY like this:

otter sync --date TODAY

Tracking your work time

The strength of Otter is to switch between many project tasks throughout a work day without having to add a work description every time. Otter will concatenate all work descriptions belonging to the same project task and the same work day when performing the sync to Odoo automatically. And it will also automatically adjust the work time to 15 minutes blocks (note that very short tasks below 15 minutes might be dropped by that automatic adjustment).

To start working on a project task, just run the following command and follow the instructions.

otter start

While a project task is active, you can always add a description for your current work.

otter describe "[TICKET-123] Implement functionality and tests"

To see whether a project task is currently active, run the following command:

otter status

And to stop your work, just run:

otter stop

Sometimes you might forget to start or stop a task in time. You can fix that by passing the time option to either the start or stop command with the following argument format:

  • "HH:MM" (for current day)
  • "YYYY-MM-DD HH:MM" (for a fixed date)

Example:

otter start --time "12:15"

In order to see the overall worktime for the current day, run:

otter show

You can also pass the date option with the following argument format:

  • "YYYY-MM-DD"

Example:

otter show --date 2021-10-01

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoo-otter-0.0.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

odoo_otter-0.0.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file odoo-otter-0.0.2.tar.gz.

File metadata

  • Download URL: odoo-otter-0.0.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for odoo-otter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c756bdd3668b878f384836a233287876bac9b9af35439d3ecba8dc7659eed31c
MD5 e538fa8cd367f374b86c2ef4d2c4362f
BLAKE2b-256 ebcf5f270b2a6cc3ee534c1e008942e0b0d563015e7b12e43322e19adaf2fff1

See more details on using hashes here.

File details

Details for the file odoo_otter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: odoo_otter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for odoo_otter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 537398e89dceab162d8cc5a8676abd7467980a13142160a65da221d9164bccc5
MD5 926dd305050b137d4ca69cdfed2c8c22
BLAKE2b-256 053e0e52ae72bb23811b6b1762c4b725870e8be1d10900318b71d7d7b3ff71f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page