OdooWiki OCA HUB

Sale Order Payment Terms From Invoice Address

sale_order_payment_terms_from_invoice_address folder_open OCA/sale-workflow open_in_new
Uncategorised License: AGPL-3

Adds a config option to make the payment terms on sale orders computed based on the "invoice address" (partner_invoice_id) instead of the "customer" (partner_id).

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a setting in Sales that makes the payment terms on a sale order come from the invoice address instead of the customer. When enabled, changing the invoice address updates the order's payment terms automatically.

This module gives you a new option in the Sales settings: "Compute Sale Order Payment Terms from Invoice Address". You can find it in the Sales configuration screen, right after the proforma settings.

When the option is off, Odoo behaves as usual: the payment terms on a sale order come from the customer. When you turn it on, the payment terms are taken from the invoice address instead. This is useful when the company that receives the invoice has different payment conditions than the customer you are selling to.

  • The payment terms field on a sale order is recalculated automatically whenever the customer or the invoice address changes.
  • The value used is the payment terms configured on the invoice address contact.
  • The setting is stored globally, so it applies to all sale orders in the database.

The module only touches the sale order screen and the Sales settings. It does not add new menus, reports, emails or scheduled actions. No other business rules, checks or restrictions are added by the code.

Depends on

sale_management
Models and fields (2)
  • sale.order · extends an existing model
  • res.config.settings · extends an existing modelcompute_so_payment_terms_from_partner_invoice (Compute Sale Order Payment Terms from Invoice Address)

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

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 18.0

To configure this module, you need to:

  • Go to Settings > Sales > Quotations & Orders
  • Activate boolean "Compute Sale Order Payment Terms from Invoice Address" > save

> This module does not impact the user interface.

To use this module, you need to:

  • Go to Settings > Sales > Quotations & Orders

Check the setting "Compute Sale Order Payment Terms from Invoice Address"

  • In Sale Orders, the "Payment Terms" field is now based on the "Invoice address" and not on "Customer"

No verified information in OCA: Installation.

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.