Skip to main content

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

This module extends the functionality of point of sale module, to display on the PoS ticket, the amount of the discount applied for this sale. Contrary to the logic of Odoo and the OCA (https://github.com/OCA/sale-workflow/tree/14.0/sale_discount_display_amount) the amount of the discount is the difference between the theoretical sale with the default price list and the actual sale amount. So it take into accounts:

  • explicit discount set on pos.order.line. (as for odoo sale module)

  • fixed price set on pos.order.line

  • discount generated by specific pricelist

Also the module ignores in the computation of undiscounted amount lines, the lines with a ‘Discount Product’. (see the configure section.)

Table of contents

Configuration

  • Go to “Point of Sale > Products”

  • Create or edit your discount products

  • Check the box “Is a Discount”

https://raw.githubusercontent.com/OCA/pos/16.0/pos_discount_all/static/description/product_template_form.png

Usage

Open your point of Sale

Make an order. for exemple, - select the product ‘Conference chair (39.40$)’ - select the pricelist -10% - add a discount of 1$

The total discount is 1$ + 10% * 39.40 = 4.94$

https://raw.githubusercontent.com/OCA/pos/16.0/pos_discount_all/static/description/order_summary.png

Note, the discount displayed on the ticket is updated, to take into account all the discount.

https://raw.githubusercontent.com/OCA/pos/16.0/pos_discount_all/static/description/pos_receipt.png

Development

Note

In the javascript file, we could write

const PosDiscountAllOrder = () =>
    class extends Order {
    }

However, this code doesn’t work if pos_sale module is installed. For that reason we code the declaration as Odoo does, and add eslint exception.

// eslint-disable-next-line no-shadow
const PosDiscountAllOrder = (Order) =>
    // eslint-disable-next-line no-shadow
    class PosDiscountAllOrder extends Order {
    }

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

  • GRAP

Contributors

Other credits

The development of this module has been financially supported by:

  • UGESS, Union Nationale des Groupements des épiceries Sociales et Solidaires (https://ugess.org/)

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.

Current maintainer:

legalsylvain

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.

Metadata

Release files for odoo-addon-pos-discount-all 16.0.1.0.1.8

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-all 16.0.1.0.1.8
File Interpreter ABI Platform
odoo_addon_pos_discount_all-16.0.1.0.1.8-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_pos_discount_all-16.0.1.0.1.8-py3-none-any.whl

Download URL odoo_addon_pos_discount_all-16.0.1.0.1.8-py3-none-any.whl
Size 203.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
605c5501ac1888bb6f5929ba9918410e5ea4e04ae25595fc5d67417e4e943a3d
BLAKE2b-256 checksum
How to use checksums
0d2f85dea0d8311af851ac629d9c1c786761587cf6738314dc90c53ca1bb1718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

16.0.1.0.1.8 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