Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Sales
  3. Purchase Add Extra Line v 20.0
  4. Sales Conditions FAQ

Purchase Add Extra Line

by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro
Odoo
v 20.0 Third Party 27
Download for v 20.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 17.0 18.0 19.0 20.0
  • Description
  • Manifest
Purchase Add Extra Line

Purchase Add Extra Line

Auto extra lines on purchase orders

Odoo 20.0 Sales Odoo.sh • On-premise LGPL-3
✓ 18 automated tests
93% code coverage
★ Did this module help you? It is free, built and maintained by the Terrabit developers. If it saved you time, a rating on this page is the best way to say thanks — and it helps other Odoo users find it too. Thank you for your support!
★ Leave a rating ↓
  • Overview
  • Versions
Overview

Purchase Add Extra Line Extension

This module introduces an automated process for adding extra lines (e.g., service fees, handling charges, or supplementary products) to Purchase Orders in Odoo. It's designed to help procurement teams consistently apply additional costs or items based on the primary products being purchased.

Key Features

  1. Configurable Extra Products:

    • Allows users to define an Extra Product directly on the product template.
    • Enables automated adding of this extra line whenever the primary product is added to a Purchase Order.
  2. Flexible Pricing Logic:

    • The unit price for the extra line can be computed as a percentage of the primary product's price.
    • If the percentage is set to zero, the standard price computation applies, so the extra line gets the vendor price of its own product, in the currency and unit of measure of the order.
    • A unit price typed in on the extra line is kept and no longer recomputed from the main line. The quantity keeps following the main line. To go back to the computed price, delete the extra line — it is regenerated automatically.
  3. Quantity in the Unit of the Product:

    • The quantity of the extra line is the quantity of the main line converted into the unit of measure of its product (20 boxes of 12 give 240 extra units), multiplied by the configured multiplier.
  4. Received and Billed with the Main Line:

    • A service extra line (a deposit, a fee, a stamp) has no receipt of its own: it is received and billed together with its main line, whatever its own control policy. A partial receipt bills only the extra quantity of the received products.
  5. Procurement Efficiency:

    • Reduces manual entry errors and ensures that all mandatory supplementary costs or items are included in every relevant Purchase Order.

Usage

  1. Go to Purchase > Products > Products.
  2. Open a product and locate the Extra Line Configuration (typically in the Purchase or a dedicated tab).
  3. Select the Extra Product you want to associate and set the Percentage (if applicable).
  4. Create a new Purchase Order and add the primary product to the order lines.
  5. The system will automatically add the extra product as a separate line with the pre-calculated price.
Versions

20.0.1.7.0 (2026-11-28)

  • [IMP] a service extra line (deposit, fee, stamp) is received and billed together with its main line: its received quantity follows the received quantity of the main line (new method Main Line), and its quantity to bill follows what the main line has billed and has still to bill, whatever the control policy of the extra product. An extra line with goods keeps its own receipts. The lines created before the update keep their previous behavior.
  • [IMP] the quantity of the extra line is computed in the unit of measure of the main product: 20 boxes of 12 give 240 extra units. A price in percent of the main line is computed per unit of the product as well, so its total does not change. A change of the unit of measure of the main line updates the extra line.
  • New technical field extra_main_line_id: the main line of an extra line.
  • Without purchase_stock, the Receive button and action of the standard accept only manually received lines: an order with an extra line received together with its main line keeps the button, and Receive sets the main lines, the extra lines following them.

20.0.1.6.0 (2026-11-05)

  • [IMP] new hooks _get_extra_product and _get_extra_price_unit on the purchase order line, as on the sale order line: a module can decide the extra product and its unit price from the line (for example the green stamp of electrical equipment, l10n_ro_green_stamp).
  • [FIX] an extra line generated in the RFQ form with a price that does not come from the main line got no description, and the RFQ could not be saved: the description is now computed before the price is set.

20.0.1.5.0 (2026-10-01)

  • Migration to Odoo 20.0, including the PURCHASEEXTRA-001 fix from 19.0.1.4.0 (the extra line is replaced or removed when the product of the main line changes, and the pair is tracked through is_extra_line) and the mandatory extra line from 19.0.1.5.0 (regenerated on confirmation, quantity and unit of measure read-only). The migration that flags the existing extra lines runs as 20.0.1.4.0, so it also covers the databases upgraded from a 19.0 version older than 19.0.1.4.0
  • The extra line is created with uom_id: in Odoo 20 the unit of measure of the purchase order line is no longer product_uom_id
  • The override of print_quotation is removed: the method no longer exists in Odoo 20, where Print on an RFQ is a plain report action. The lines are still synchronized before printing, because the form is saved first and purchase.order.write() synchronizes them

19.0.1.5.0

  • [IMP] the extra line is mandatory: confirming the RFQ regenerates an extra line deleted outside the form (ORM, import, XML-RPC), which was otherwise only restored on the next change of the order lines
  • [IMP] the quantity and unit of measure of the extra line are read-only in the order lines (list and line form), since they follow the main line and a manual change was silently overwritten on the next synchronization; its unit price stays editable

19.0.1.4.0

  • [FIX] changing the product of a main line no longer leaves the extra line of the old product on the RFQ (PURCHASEEXTRA-001): when the new product has another extra product, the old extra line is replaced by a new one, with the product, unit of measure, quantity and computed price of the new extra; when the new product has no extra, the old extra line is removed. This applies to the form as well as to write(), imports and XML-RPC
  • [FIX] deleting a main line now also deletes its extra line when the product no longer has an extra configured
  • [FIX] an extra line whose product has an extra of its own is no longer taken for a main line
  • [IMP] the extra lines are marked with the technical field is_extra_line, so the pair no longer depends on the current product configuration; the migration marks the extra lines created by the previous versions
  • [FIX] the order lines are synchronized after all the line commands of a save are applied, so a product change saved from the form does not create the new extra line twice

19.0.1.3.1

  • Own module icon, instead of the generic gears it had.

19.0.1.3.0

  • [FIX] check_extra_product now also runs on write() of product_qty, product_id or price_unit: previously it only ran on create() and on the form's live onchange_order_line, so a quantity change saved through an inline list edit, an import or an XML-RPC write left the extra line at its old quantity and price (ticket #9275)

19.0.1.2.0

  • [IMP] Romanian translation (i18n/ro.po): the group Extra Line and the fields Extra Product, Extra Percent, Extra Qty are now translated into Romanian, instead of staying in English on a Romanian interface
  • [IMP] the three configuration fields finally have tooltips, kept identical to the ones in deltatech_sale_add_extra_line: both modules declare the same fields on product.template, so with both installed the last one loaded wins — divergent wording would make the tooltip depend on the load order. They are therefore neutral as to the kind of document ("ordered")
  • [DOC] consultant sheet (readme/FISA_CONSULTANT.md) with 6 screenshots generated from tests/test_screenshots.py, documenting the flow and three limitations to tell the customer: the mechanism only works before the order is confirmed, a zero percent leaves the vendor price in place, and the configuration is shared with the sale module

19.0.1.1.0

  • [IMP] a unit price typed in on the extra line is kept: the price computed from the percent set on the main product is no longer written back over it. The quantity keeps following the main line. Deleting the extra line is the way back to the computed price — it is regenerated on the next change of the order lines
  • [FIX] a manual price is recognized on every flow, not only in the purchase order form: the price set by the module is recorded in the technical field extra_price_computed, so lines changed through write(), an import or XML-RPC are detected as well
  • [FIX] a vendor price recomputation (which rewrites price_unit and technical_price_unit together) is no longer mistaken for a manual price, so the extra line goes back to its computed price
800+
Modules published on Odoo Apps
Odoo
Silver PartnerImplementation & Support

Need help getting started?

Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.

Questions about this module? Write to us — the developers who build it will answer.

Terrabit support →

More apps by Terrabit

Other modules from the same publisher, built to work together. All apps →

CI Custom Invoice Exchange Rate Sales

Edit the currency rate on the invoice

AP Alternative Product Codes Sales

Alternative product codes

DP Discount Policy Sales

Bring back Odoo 17 discount policy

DW Document Weight Sales

Net and gross weight and volume per line and in total on quotations and invoices

FS Fast Sale Sales

Confirm, deliver and invoice a sale order in one click

IP Invoice Pickings Sales

Create invoices directly from stock pickings or batch transfers

AI Auto-Invoice from Delivery Sales

Generate invoice automatically from picking after validation

PC Price Change Labels Sales

Print product labels for the products of a price change document

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
Lines of code 281
Technical Name deltatech_purchase_add_extra_line
LicenseLGPL-3
Websitehttps://www.terrabit.ro

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.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with