Metadata-Version: 2.1
Name: odoo-addon-product_uom_reference
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Configure reference unit of measurement
Home-page: https://github.com/OCA/product-attribute
License: AGPL-3
Author: Binhex, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.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

=====================
Product uom reference
=====================

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

.. |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%2Fproduct--attribute-lightgray.png?logo=github
    :target: https://github.com/OCA/product-attribute/tree/18.0/product_uom_reference
    :alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_uom_reference
    :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/product-attribute&target_branch=18.0
    :alt: Try me on Runboat

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

This module shows a unit price (price per reference unit of measure) on
product labels, so customers can compare products sold in different
package sizes, as required by EU Directive 98/6/EC on consumer
protection in the indication of the prices of products.

The reference unit of measure is chosen freely and may belong to a
different category than the product's unit of measure: a product sold
per Units can show its price per kg or per L. The ratio is the quantity
of the reference unit contained in one unit of the product (its net
content), so it depends on the product, not on the conversion factors of
the units of measure.

Example, two products sold per Units:

- Tomato paste 500 g: $2.50 per Units, ratio 0.5 → $5.00 per kg
- Tomato paste 1 kg: $4.50 per Units, ratio 1 → $4.50 per kg

**Table of contents**

.. contents::
   :local:

Configuration
=============

Enable unit of measure role
---------------------------

1. Go to Settings > Users & Companies > Users
2. Create or edit a user
3. Find the Manage Multiple Units of Measure role and select it
4. Save

|ROLE_UOM_IN_USER|

Other option:

1. Go to Settings
2. Option Inventory
3. Find the option Units of Measure and select it
4. Save

|OPTION_UOM_IN_SETTINGS|

.. |ROLE_UOM_IN_USER| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/rol_uom_in_user.png
.. |OPTION_UOM_IN_SETTINGS| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/option_uom_in_settings.png

Usage
=====

Add Uom Reference
-----------------

1. Go to Inventory > Configuration > Product UOM Reference
2. Add a new item:

   - Name: a name to identify it, e.g. the packaging (Pack 500 g)
   - Uom: the unit of measure the product is sold in (Units)
   - Uom Reference: the unit of measure used for the unit price on the
     label (kg)
   - Ratio: quantity of the reference unit contained in one unit of the
     product (0.5 for a 500 g pack sold per Units and shown per kg)

3. Save

|CREATE_REFERENCE|

Configure Uom Reference in Product
----------------------------------

1. Go to Inventory > Products > Products
2. Create or edit a product
3. Select a Uom Reference. Only the references whose Uom matches the
   product's unit of measure are shown
4. Save

|CONFIGURE_REFERENCE_PRODUCT|

Print labels with Uom Reference
-------------------------------

1. Follow the steps `Configure Uom Reference in
   Product <#configure-uom-reference-in-product>`__

2. Press the Print labels button and select the type of label you want
   to print

3. Press the button Confirm

4. Upon confirmation, the product label is generated, in which the price
   of the reference unit is shown below the product price: the product
   price divided by the ratio configured in `Add Uom
   Reference <#add-uom-reference>`__.

   Example:

   - Product price: $2.50 per Units
   - Ratio: 0.5
   - Price per reference unit: $2.50 / 0.5 = $5.00 per kg

|PRODUCT_PRINT_LABELS|

|REPORT_PRINT_LABELS|

|REPORT_PRINT_LABELS_ZPL|

.. |CREATE_REFERENCE| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/create_reference.png
.. |CONFIGURE_REFERENCE_PRODUCT| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/configure_reference_product.png
.. |PRODUCT_PRINT_LABELS| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/product_print_labels.png
.. |REPORT_PRINT_LABELS| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/report_print_labels.png
.. |REPORT_PRINT_LABELS_ZPL| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_uom_reference/static/img/readme/report_print_labels_zpl.png

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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/product-attribute/issues/new?body=module:%20product_uom_reference%0Aversion:%2018.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
-------

* Binhex

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

- `Binhex Cloud <https://www.binhex.cloud>`__:

  - Edilio Escalona Almira e.escalona@binhex.cloud

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/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_uom_reference>`_ project on GitHub.

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