Why this module? When customers ask for an amount in money (e.g. "I want 5 JOD of grapes") instead of a quantity, the cashier can enter the total price directly. The system calculates the quantity automatically â no mental math, correct inventory and invoicing.
Key benefits:
- Sell by total amount (e.g. 10.00) instead of quantity â ideal for weighed products, bakery, deli.
- Per-product control: enable "Price-based in POS" only for the products that need it.
- Unit price stays fixed; only quantity is updated. Inventory and financial movements remain accurate.
Total Price button in POS
Adds a Total Price button to the Point of Sale control buttons. When the selected order line is for a price-based product, the cashier can enter the desired total amount; the system computes and sets the quantity (Qty = Total ÷ Unit Price). Unit price is never changed.
Per-product control
A boolean field Price-based in POS is added to the product form (Point of Sale tab). The Total Price button is only enabled when the selected line belongs to a product with this flag enabled. Invalid input, zero price, and missing selection are handled with clear alerts.
Product form â Point of Sale tab: enable "Price-based in POS" for the product. The Total Price button in POS is then available for this product.
Product with "Price-based in POS" disabled: in POS the Total Price button stays disabled for this product; only products with the field enabled can use it.
Requirements
- Odoo 19 (Community or Enterprise)
- Point of Sale app installed and used in your database
How it works
- In the product form, open the Point of Sale tab. Enable the Price-based in POS checkbox (below "Is a Weighed Product?").
- In the POS session, add that product to the order and select its order line.
- The Total Price button in the control-buttons area becomes clickable.
- Click Total Price. Enter the desired total (e.g.
2). The system computes: Qty = EnteredTotal ÷ UnitPrice. - The order line quantity is updated; unit price and line total reflect the entered amount.
Step 1: Select the product (with the field enabled). Step 2: Click Total Price. The button is enabled for price-based products.
Step 3: A popup appears â Enter total price: Type the amount (e.g. 5) and click OK. The system will update the line quantity automatically.
Step 4: A Success message appears with the calculated quantity and total. The order line is updated (e.g. 0.42 Apple Pie, 5.00 total). This operation generates the corresponding inventory and financial movements in Odoo.
Final result: The order shows 0.42 Apple Pie with total 5.80 (including taxes). The product card displays the quantity (0.42). The line is ready for payment.
For a product that does not have "Price-based in POS" enabled (e.g. Bagel), the Total Price button stays disabled. You cannot sell it by the customer's requested total price â only by quantity and unit price.
Edge cases
No order line selected, product without the flag, zero price, or invalid input are handled with clear alert messages; the button is disabled when not applicable.
POS with no products in the order: the Total Price button is visible but disabled (cannot be clicked) until a price-based product line is selected.
Please log in to comment on this module