Metadata-Version: 2.1
Name: odoo-addon-purchase_uom_discrete
Version: 19.0.1.0.0.4
Requires-Dist: odoo==19.0.*
Summary: Round discrete purchase quantities up to whole numbers
Home-page: https://github.com/OCA/purchase-workflow
License: AGPL-3
Author: Camptocamp SA, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=====================
Purchase UoM Discrete
=====================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:d9bf9575b7644aee0beb80c0024474a4953bcc30ab7b07723fa026efe7e8eac2
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github
    :target: https://github.com/OCA/purchase-workflow/tree/19.0/purchase_uom_discrete
    :alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_uom_discrete
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=19.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Discrete and countable units cannot be split. Fractional values are
meaningful for continuous measures like weight, volume, length, or time,
but not for countable items such as units, boxes, or laptops.

This module rounds purchase order line quantities using Unit based UoMs
UP to the next whole number. UoMs that do not share the Unit(s)
reference, such as kg, liters, meters, or hours, keep fractional
quantities.

This is only a purchase order form onchange helper, with no ORM-level
create or write enforcement, so users and integrations can still keep a
fractional quantity when it is intentionally applicable.

**Table of contents**

.. contents::
   :local:

Usage
=====

To use this module:

1. Create or edit a purchase order.
2. Add a purchase order line with a Unit-based UoM, such as Units or a
   box UoM.
3. Enter a fractional quantity.

The quantity is proposed rounded UP to the next whole number.

The behavior is intentionally limited to the purchase order form
onchange. Imports, RPC calls, and custom code writes are not forced
rounded.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_uom_discrete%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Camptocamp SA

Contributors
------------

- ``Camptocamp <https://www.camptocamp.com>``\ \_\_:

  - Maksym Yankin maksym.yankin@camptocamp.com

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/19.0/purchase_uom_discrete>`_ project on GitHub.

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