OdooWiki OCA HUB

Require Product Quantity in POS

pos_require_product_quantity folder_open OCA/pos open_in_new
Point of Sale License: AGPL-3

This module forbids adding empty order lines on POS orders.

When clicking on the "Payment" button in the Point of Sale, a popup is shown if product quantity for one or more order lines is set to 0.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a setting to require that every product line in a Point of Sale order has a quantity greater than zero. If any line has quantity 0, a popup blocks payment until it is fixed.

This module adds a new option in the Point of Sale settings called "Require Product Quantity". When enabled, it prevents cashiers from paying an order that contains one or more product lines with a quantity of 0.

  • The setting is available in the Point of Sale configuration screen, under the product prices section. It is turned on by default for each point of sale.
  • When a cashier clicks the "Payment" button, the system checks all order lines. If any line has quantity 0, a popup appears titled "Missing quantities" listing the products with no quantity.
  • The payment process stops until the cashier corrects the quantities or removes the empty lines.
  • The module affects the pos.config model by adding the require_product_quantity field, and the res.config.settings model to expose that setting in the configuration screen.
  • It also modifies the Point of Sale product screen behaviour to perform the check before proceeding to payment.

This helps avoid mistakes such as charging a customer for a product that was accidentally left at zero quantity.

Depends on

point_of_sale
Models and fields (2)
  • pos.config · extends an existing modelrequire_product_quantity (Require product quantity in POS)
  • res.config.settings · extends an existing modelpos_require_product_quantity

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.