Skip to main content
Odoo Community Association

Point of Sale - Price to Weight

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runboat

This module extends Odoo Point Of Sale features, to allow to scan barcode with price and to compute according quantity.

In Odoo by default, there are three types of barcode rules for products.

  • ‘Unit Product’ (type=product). Scanning a product will add a unit of this product to the current order.

  • ‘Priced product’ (type=price). A price is extracted from the barcode, and a new line with the given price and a quantity = 1 is added to the current order.

  • ‘Weighted product’ (type=weight). A weight is extracted from the barcode, and a new line with the given weight, and a computed price (quantity * Unit price) is added to the current order.

This module add a new option:

  • ‘Priced Product (Computed Weight)’ (type=price_to_weight). A price is extracted from the barcode, and a new line with the given price, and a computed quantity (Price / Unit Price) is added to the current order.

This module is usefull in shops with products scaled, to manage correctly stock quantities.

Samples

  • Given a product with a unit price of 1,50€ / kg

  • The barcode is 0212345{NNNDD}x where:
    • 02 is the prefix of the barcode rule

    • 12345 is the product number

    • {NNNDD} is the price of the scaled product

    • x is the control digit

  • On the product we so set ‘0212345000007’ in the barcode field.

  • if the scanned barcode is 0212345002650:
    • {NNNDD} is 00265, the price is so 2,65€

    • the according quantity is 2,65€ / 1,5 €/kg = 1,767 kg

https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/pos_test_1.png
  • if the scanned barcode is 0212345008102:
    • {NNNDD} is 00810, the price is so 8,10€

    • the according quantity is 8,10€ / 1,5 €/kg = 5,400 kg

https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/pos_test_2.png

Table of contents

Configuration

  • Go to Settings > Point of Sale > Inventory.

  • Open the Barcode Nomenclature list and edit your barcode rules, according to your barcodes settings.

  • Ensure that the “Price (Computed Weight) Barcodes Include Taxes” checkbox is checked or not depending on whether the prices encoded in your barcodes include taxes or not.

https://raw.githubusercontent.com/OCA/pos/16.0/pos_price_to_weight/static/description/barcode_rule.png

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 to smash it by providing a detailed and welcomed feedback.

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

Credits

Authors

  • La Louve

  • GRAP

Contributors

Other credits

Icon parts come from http://icons8.com

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/pos project on GitHub.

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

Release files for odoo-addon-pos-price-to-weight 16.0.1.1.0.5

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 odoo-addon-pos-price-to-weight 16.0.1.1.0.5
File Interpreter ABI Platform
odoo_addon_pos_price_to_weight-16.0.1.1.0.5-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_pos_price_to_weight-16.0.1.1.0.5-py3-none-any.whl

Download URL odoo_addon_pos_price_to_weight-16.0.1.1.0.5-py3-none-any.whl
Size 105.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a8896fe7f15edf134de0de63a5bfeee582ca7625e7c5678124abfc30a666b7
BLAKE2b-256 checksum
How to use checksums
cbc0f5732b8167d9d93820afcbe48c9204214277f919ff0b62e77dbbd3d5be2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4
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