OdooWiki OCA HUB

Agreement Sale

agreement_sale folder_open OCA/agreement open_in_new
Contract License: AGPL-3

This module adds Agreement field to Sales Orders

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Links sales orders to agreements and agreement types, and shows a Sale Orders counter button on the agreement form. Sales managers get full access to agreements and agreement types.

This module connects the Agreement app with Sales. On a sales order (quotation or sales order) you get two new fields: an Agreement and an Agreement Type. The Agreement Type field is only visible to users who belong to the agreement type user group. Both fields can only be changed while the order is still in Draft or Quotation Sent status; once the order is confirmed they become read-only, so the link cannot be changed afterwards. Both fields are tracked, meaning changes are recorded in the chatter history of the order.

On the agreement form itself, a new "Sale Orders" counter button appears in the button box at the top. It shows how many sales orders are linked to that agreement. Clicking it opens the list of those orders, or goes directly to the single order's form if only one is linked.

Access rights are also added: sales managers get full create, read, write and delete rights on agreements and agreement types, while all internal users get read-only access to agreement types. Deleting an agreement or agreement type that is still used by a sales order is blocked, because the link is set to restrict deletion.

Depends on

sale_managementagreement
Models and fields (2)
  • agreement · extends an existing modelsale_order_count (# Sale Orders)
  • sale.order · extends an existing modelagreement_id (Agreement), agreement_type_id (Agreement Type)

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

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.