Skip to Content
Menu
v 18.0 Third Party 42
Download for v 18.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Point of Sale (point_of_sale)
Discuss (mail)
Inventory (stock)
Invoicing (account)
eCommerce (website_sale)
Website (website)
Community Apps Dependencies
Lines of code 175
Technical Name deltatech_sale_add_extra_line_pos
LicenseOPL-1
Websitehttps://www.terrabit.ro
Versions 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Point of Sale (point_of_sale)
Discuss (mail)
Inventory (stock)
Invoicing (account)
eCommerce (website_sale)
Website (website)
Community Apps Dependencies
Lines of code 175
Technical Name deltatech_sale_add_extra_line_pos
LicenseOPL-1
Websitehttps://www.terrabit.ro
Versions 15.0 16.0 17.0 18.0

POS Add Extra Line

Production/Stable dhongu/deltatech

Sale Add Extra Line - Point of Sale Extension

The deltatech_sale_add_extra_line_pos module is an Odoo addon that extends the Point of Sale (POS) functionality to automatically add extra product lines to POS orders based on configured products. This module is a specialized extension of the deltatech_sale_add_extra_line module, specifically designed for the Point of Sale system.

Features

  • Real-time POS Integration: Seamlessly integrates automatic extra line addition directly into the Point of Sale interface
  • Client-side Processing: Handles extra product addition on the client side for immediate visual feedback
  • Dynamic Quantity Calculation: Automatically calculates and updates extra product quantities based on the main product quantities in the POS cart
  • Product Configuration: Allows configuration of extra products and quantity multipliers directly in the product template
  • Automatic Line Consolidation: Intelligently consolidates multiple extra product lines into a single line with the correct total quantity
  • Real-time Updates: Updates extra product quantities instantly when main product quantities are modified in the POS cart

How It Works

Product Configuration

In the product template, you can configure:

  • Extra Product: The product that should be automatically added when the main product is sold
  • Extra Quantity Multiplier: A multiplier to calculate how much of the extra product should be added (e.g., 0.1 means 10% of the main product quantity)

POS Workflow

  1. Adding Products: When a cashier adds a product with extra product configuration to the POS cart, the system automatically adds the configured extra product as a separate line
  2. Quantity Adjustment: When the quantity of the main product is modified, the extra product quantity is automatically recalculated based on:
    • All instances of products that reference the same extra product
    • The quantity multiplier configured for each product
    • The formula: Extra Qty = Σ(Main Product Qty × Extra Qty Multiplier)
  3. Line Consolidation: If an extra product is referenced by multiple products in the cart, the module consolidates them into a single line with the aggregated quantity
  4. Session Processing: When the POS session is closed, the extra product information is properly transferred to the backend for order processing

Use Cases

This module is particularly useful for retail and hospitality businesses that need to:

  • Environmental Fees: Automatically add environmental or recycling fees based on product types
  • Bag Charges: Add shopping bag charges based on the number or volume of products purchased
  • Service Charges: Include service or handling fees for certain product categories
  • Packaging Materials: Automatically account for packaging materials used per product
  • Deposit Fees: Add deposit charges for returnable containers or bottles
  • Transaction Fees: Include payment processing or transaction fees

Technical Implementation

The module extends the Point of Sale system through:

  • JavaScript Patches: Extends POS order and order line models using Odoo’s patch mechanism
  • Client-side Logic: Implements automatic extra line addition and quantity calculation in the POS interface
  • Backend Integration: Ensures proper synchronization of extra product information between frontend and backend
  • Product Template Extension: Adds extra product fields to the product template model
  • Session Handling: Properly loads extra product configuration data when POS sessions are opened

Benefits

  • Improved Accuracy: Eliminates manual errors in adding fees or related products
  • Faster Checkout: Reduces time spent manually adding extra items
  • Consistency: Ensures uniform application of fees and charges across all transactions
  • Transparency: Customers can clearly see extra charges itemized on their receipt
  • Compliance: Helps meet regulatory requirements for separate fee disclosure
  • Efficiency: Cashiers can focus on customer service rather than remembering to add extra items

Dependencies

This module depends on:

  • deltatech_sale_add_extra_line - The base module for extra line functionality
  • point_of_sale - Odoo’s Point of Sale module

Integration

The module works seamlessly with Odoo’s standard POS features and can be combined with other POS extensions for enhanced functionality.

Table of contents

Bug Tracker

Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Terrabit
  • Dorin Hongu

Maintainers

Current maintainer:

dhongu

This module is part of the dhongu/deltatech project on GitHub.

You are welcome to contribute.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.