Odoo Community Association

Sale Order Payment Terms From Invoice Address

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

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).

Table of contents

Use Cases / Context

Take the example of a business that relies on a primary logistics model where we fulfill orders placed through an external e-commerce platform or third-party reseller.

In this scenario:

  1. Customer (``partner_id``): The final recipient of the goods (the end-user).
  2. Invoice Address (``partner_invoice_id``): The external e-commerce platform/reseller responsible for payment.

The default Odoo behavior calculates the payment_term_id on the Sale Order based on the Customer (``partner_id``). This is incorrect because our financial relationship is strictly with the reseller (the Invoice Address).

Configuration

To configure this module, you need to:

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

Usage

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”

setting image

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

payment terms computation in sale order

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

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

Credits

Authors

  • ACSONE SA/NV

Other credits

The development of this module has been financially supported by:

  • Acsone SA/NV

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/sale-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.