Skip to main content
Odoo Community Association

POS Discount Per Line

Beta License: AGPL-3 sygel-technology/sy-pos

This module allows to set a general discount in all the POS lines.

Unlike Odoo’s default global POS discount, which applies to the entire order, this discount is applied individually to each line item.

This module also offers the option to set two types of discount operations:

  • Sum: The global discount percentage will be added to the discount percentage of each line item.

  • Replace: The discount percentage of each line item will be the global discount percentage applied.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Point of Sale / Configuration / Settings. Select your Point of Sale to configure

  2. Search the “Discount per Line” option. Select your desired default method, ‘sum’ or ‘replace’

Usage

To use this module, you need to:

  1. Go to “Point of Sale” and open a POS session

  2. Select some products to be selled

  3. Click on Actions / Discount Per Line

  4. Select your global discont and your method. Click on “Ok”

  5. The discount would be applied to all the products you selected to be selled, in their respective lines.

Known issues / Roadmap

  • Unit tests or tours to test the JS code should be added in the next module versions

  • In the NumberPopup xml asset, the t-att-selected attribute, that was used in v15 to determine the default option, has been removed in v18 because it was giving problems. The problem consisted that, when clicking on a number button of the NumberPopup, the discount option was resetting to the default, ignoring the user changes. To solve this, the select options have been duplicated with a different order and a conditional, Odoo takes the first option as the default one. This would be nice to be solved in future versions, although it is not essential.

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

  • Sygel

Contributors

  • Sygel:

    • Manuel Regidor

    • Alberto Martínez

    • Valentin Vinagre

    • Harald Panten

Maintainers

This module is part of the sygel-technology/sy-pos project on GitHub.

You are welcome to contribute.

Metadata

Release files for odoo-addon-pos-discount-per-line 18.0.1.1.0

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-discount-per-line 18.0.1.1.0
File Interpreter ABI Platform
odoo_addon_pos_discount_per_line-18.0.1.1.0-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_pos_discount_per_line-18.0.1.1.0-py3-none-any.whl

Download URL odoo_addon_pos_discount_per_line-18.0.1.1.0-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ead4c11656ddd7287b654ad242971f5d24062e18db83ca8b09415dfd0cc3c7e2
BLAKE2b-256 checksum
How to use checksums
7f91edb9015602bf121e3674469e3ee02e9fd5a3c7f9d6a9a9bbebbca912dac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

18.0.1.1.0 This release

1 release file

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