| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 110 |
| Technical Name |
deltatech_sale_add_extra_line |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
| Versions | 16.0 17.0 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 110 |
| Technical Name |
deltatech_sale_add_extra_line |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
| Versions | 16.0 17.0 18.0 |
Sale Add Extra Line

Sale Add Extra Line Module
The deltatech_sale_add_extra_line module is an Odoo addon that provides automated functionality for adding extra product lines to sale orders based on the products being sold.
Features
- Automatic Extra Line Addition: Automatically adds an extra line for configured products in sale orders
- Product Configuration: The product added in the extra line can be configured in the product template
- Smart Price Calculation: The unit price of the extra line is computed from the percent configured in the product. If the percent is zero, the price will be the list price of the added product
- Quantity-based Calculation: The quantity of the extra product is calculated based on the quantity of the main product and a configurable multiplier
- Point of Sale Integration: Works seamlessly with both regular sale orders and Point of Sale transactions
How It Works
- Product Configuration: In the product template, you can
configure:
- An extra product that should be automatically added
- A percentage for price calculation
- A quantity multiplier for the extra product
- Automatic Addition: When a product with extra product
configuration is added to a sale order, the system automatically:
- Adds the configured extra product as a new line
- Calculates the appropriate quantity based on the main product quantity
- Sets the price based on the configured percentage or list price
- Dynamic Updates: When quantities of main products are modified, the extra product quantities are automatically recalculated and updated accordingly
Use Cases
This module is particularly useful for:
- Service Charges: Automatically adding service fees based on product sales
- Mandatory Accessories: Adding required accessories or complementary products
- Packaging Materials: Adding packaging costs based on product quantities
- Installation Services: Adding installation or setup services for certain products
- Warranty Extensions: Automatically including warranty products
Technical Implementation
The module extends the standard Odoo sale order functionality by:
- Adding fields to product templates for extra product configuration
- Overriding sale order line creation methods to trigger extra line addition
- Implementing quantity and price calculation logic
- Providing Point of Sale integration through JavaScript patches
This automation helps businesses ensure consistency in their sales processes and reduces manual errors when adding related products or services to customer orders.
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:

This module is part of the dhongu/deltatech project on GitHub.
You are welcome to contribute.
Please log in to comment on this module