Odoo Community Association

Purchase Contract

Beta License: AGPL-3 sygel-technology/sy-contract

This module allows generating purchase contracts from purchase orders through a wizard.

Users can customize contract lines and generate multiple contracts from the same purchase order, respecting the remaining available quantities.

Generated contracts are linked to their purchase orders and accessible through a smart button.

Table of contents

Usage

Usage

  1. Go to Purchases > Orders > Purchase Orders and open a purchase order.
  2. Click Generate Agreement to open the contract generation wizard.
  3. Configure the contract name, start date, responsible user, and recurrence settings.
  4. Review the purchase order lines loaded automatically into the wizard.
  5. Modify quantities, descriptions, or unit prices, or remove any lines that should not be included.
  6. Click Generate Contract to create and open the purchase contract.

Multiple Contracts

Multiple contracts can be generated from the same purchase order.

When reopening the wizard, only the remaining available quantities are proposed, taking into account quantities already assigned to other contracts.

Canceled or deleted contract lines release their quantities, while archived contracts continue to reserve them.

The system prevents contracting quantities greater than those ordered or reducing purchase order quantities below those already contracted.

Accessing Contracts

Use the Contracts smart button on the purchase order to access its generated contracts.

Contracts can be further configured using the standard contract form.

Known issues / Roadmap

  • Add navigation from purchase contracts to their originating purchase orders, allowing users to access the original purchase order directly from the contract form.
  • Consider unifying the button labels in the future. Currently, “Generate Agreement” opens the wizard from the purchase order, as specified in the original requirements, while “Generate Contract” confirms the creation of the contract from the wizard.

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

  • Sygel

Contributors

  • Sygel:
    • Ángel Rivas
    • Valentín Vinagre
    • Harald Panten

Maintainers

This module is part of the sygel-technology/sy-contract project on GitHub.

You are welcome to contribute.