Metadata-Version: 2.1
Name: odoo-addon-sy_contract_purchase
Version: 18.0.1.0.0.1
Requires-Python: >=3.10
Requires-Dist: odoo-addon-contract==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Generate supplier contracts from purchase orders
Home-page: https://github.com/sygel-technology/sy-contract
License: AGPL-3
Author: Sygel
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=================
Purchase Contract
=================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:754cf36c9284ef33524624c4f1088ccdf169b3584c80cc41fb1fdd8b8d9e6ca7
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--contract-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-contract/tree/18.0/sy_contract_purchase
    :alt: sygel-technology/sy-contract

|badge1| |badge2| |badge3|

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**

.. contents::
   :local:

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 <https://github.com/sygel-technology/sy-contract/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 <https://github.com/sygel-technology/sy-contract/issues/new?body=module:%20sy_contract_purchase%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Sygel

Contributors
------------

- `Sygel <https://www.sygel.es>`__:

  - Ángel Rivas
  - Valentín Vinagre
  - Harald Panten

Maintainers
-----------

This module is part of the `sygel-technology/sy-contract <https://github.com/sygel-technology/sy-contract/tree/18.0/sy_contract_purchase>`_ project on GitHub.

You are welcome to contribute.
