Metadata-Version: 2.1
Name: odoo-addon-purchase_create_related
Version: 17.0.1.0.0.1
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: Create main-secondary relations beetween purchases with a wizard
Home-page: https://github.com/sygel-technology/sy-purchase-workflow
License: AGPL-3
Author: Sygel, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 17.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3

=======================
Purchase Create Related
=======================

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

.. |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/licence-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--purchase--workflow-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-purchase-workflow/tree/17.0/purchase_create_related
    :alt: sygel-technology/sy-purchase-workflow

|badge1| |badge2| |badge3|

This module provides you a wizard to create main-secondary relations
between purchases.

The wizard has 2 operation types: "create a secondary purchase" and
"link to a secondary purchase"

The module also provides some smartbuttons and filters to access the
secondary and main purchases.

**Table of contents**

.. contents::
   :local:

Usage
=====

To access the wizard, you need to:

1. Go to Purchase / Orders / Requests for Quotation
2. Select a purchase or purchases
3. Click on actions, then "Create/Link Secondary Purchases"

To create new secondary purchases you need to:

1. Access the wizard
2. Select "Create Purchase" as Operation Type
3. Select the partner of the new secondary purchase
4. Click Accept

To associate already created purchases as main-secondary purchases you
need to:

1. Go to the form view of the purchase you want to be secondary. In the
   "Other Information" tab, mark the "Can Be Secondary" check
2. Access the wizard selecting the main purchases
3. Select "Link to Purchase" as Operation Type
4. Fill the secondary purchase. You can only select purchases that "can
   be secondary", that do not have secondary purchases, and that are in
   "draft", "sent" or "to approve" state.
5. Click Accept

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-purchase-workflow/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-purchase-workflow/issues/new?body=module:%20purchase_create_related%0Aversion:%2017.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
------------

- Alberto Martínez alberto.martinez@sygel.es
- Valentin Vinagre valentin.vinagre@sygel.es
- Harald Panten harald.panten@sygel.es

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

This module is part of the `sygel-technology/sy-purchase-workflow <https://github.com/sygel-technology/sy-purchase-workflow/tree/17.0/purchase_create_related>`_ project on GitHub.

You are welcome to contribute.
