Skip to main content

Beta License: AGPL-3 OCA/timesheet Translate me on Weblate Try me on Runbot

Round timesheet lines amounts in sales based on project’ settings.

A typical use case is: you work 5 minutes but you want to invoice 15 minutes.

With this module you can configure a rounding unit or factor on the project and all the lines tracked on this project’s tasks will show a rounded amount.

If you want you can override the value manually on each entry.

The delivered quantity on the sale order line - and by consequence on the invoice - will be computed using the rounded amount. Therefore, expense lines and other non-timesheet lines will be updated with a rounded amount that is equal to the amount.

WARNING: This module cannot be used with timesheet_grid without further adapation as an update of an existing timesheet line will NOT update the rounded amount. To achieve this, you need to override adjust_grid function to pass the force_compute context key.

Table of contents

Configuration

Go to a project and set the following fields according to your needs:

  • Timesheet rounding unit

Defines the rounding unit. For instance, if you want to round to 1 hour, you can set 1.0. If you want to round to 15 min set 0.25.

  • Timesheet rounding method

Options: “No” (default), “Closest”, “Up”, “Down”.

Please refer to odoo.tools.float_utils.float_round to understand the difference.

  • Timesheet rounding factor (percentage)

When round unit is not defined you can round by a fixed %.

When using both a unit and a factor, the factor will be applied first:

result = round(amount * percentage, unit)

Known issues / Roadmap

  • improve test coverage

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/timesheet project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo13-addon-sale-timesheet-rounded 13.0.1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo13-addon-sale-timesheet-rounded 13.0.1.0.1
File Interpreter ABI Platform
odoo13_addon_sale_timesheet_rounded-13.0.1.0.1-py3-none-any.whl Python 3 none any Details

Release files / odoo13_addon_sale_timesheet_rounded-13.0.1.0.1-py3-none-any.whl

Download URL odoo13_addon_sale_timesheet_rounded-13.0.1.0.1-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b7a27ee32c7be979c21d5fc2350e13d2d134744d4f30cc611a0d24f6923c5a3
BLAKE2b-256 checksum
How to use checksums
a956a5675f04e8494e949958e3f43c3534b01e06b0026ba3b1129cd45b5b1927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page