OdooWiki OCA HUB

Purchase Invoice Plan - Retention

purchase_invoice_plan_retention folder_open OCA/purchase-workflow open_in_new
Purchase License: AGPL-3

This module include Payment Retention option for invoices created by invoice plan.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Lets buyers set a suggested payment retention (as a percentage or a fixed amount) on a purchase order that uses an invoice plan, so each generated invoice carries that retention suggestion.

This module connects two existing features: purchase invoice plans (splitting a purchase order into several invoices) and payment retention (withholding part of a payment).

On a purchase order form, when an invoice plan exists, a small block appears next to the invoice plan lines. It is only visible to users who belong to the payment retention group. There the buyer chooses whether the retention is expressed as a percentage or as an amount, and enters the corresponding value.

When invoices are created from the purchase order, these two values are copied onto the invoice, but only if the order actually uses an invoice plan. The retention is described as a suggestion: during payment the user can still ignore it.

  • Adds two fields on purchase.order: a retention type (percent or amount) and a retention value.
  • Shows them on the purchase order form, beside the invoice plan lines, hidden when there is no invoice plan and restricted to the retention user group.
  • Passes the values to the invoice when the order is invoiced through an invoice plan.

The module installs automatically when both dependencies are present. It does not add menus, reports, scheduled jobs or extra checks; it only adds the fields, the form block and the copy of the values to the invoice.

Models and fields (1)
  • purchase.order · extends an existing modelamount_retention (Retention), payment_retention (Payment Retention)

Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 14.0
  • Create purchase order with invoice plan as normal
  • On Invoice Plan tab, choose retention type (percent or amount)
  • Create invoice from invoice plan as normal, each invoice will has field "Payment Retention" set.

No verified information in OCA: Installation, Configuration.

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.