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:

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.