Metadata-Version: 2.1
Name: odoo-addon-sale_stock_deposit_margin
Version: 16.0.1.0.0.1
Summary: Module summary
Home-page: https://github.com/sygel-technology/sy-sale-workflow
Author: Sygel, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.10
Requires-Dist: odoo-addon-sale-stock-deposit<16.1dev,>=16.0dev
Requires-Dist: odoo<16.1dev,>=16.0a

=========================
Sale Stock Deposit Margin
=========================

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

.. |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--sale--workflow-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-sale-workflow/tree/16.0/sale_stock_deposit_margin
    :alt: sygel-technology/sy-sale-workflow

|badge1| |badge2| |badge3|

This module integrates sale_stock_deposit and sale_margin to
automatically set the sale margin of Delivery Stock Deposit Sale Order
Lines to 0.

This is done because the margin was already calculated when the sale was
initially processed using the Sale to Deposit route.

**Table of contents**

.. contents::
   :local:

Usage
=====

How to Use This Module
----------------------

1. Configure the Module
^^^^^^^^^^^^^^^^^^^^^^^

- Go to the README of ``sale_stock_deposit`` and follow the
  configuration instructions.

2. Create a New Quotation
^^^^^^^^^^^^^^^^^^^^^^^^^

- Select a customer who has a deposit.

3. Verify the Warehouse
^^^^^^^^^^^^^^^^^^^^^^^

- Go to the **‘Other Info’** tab → **‘Delivery’** section.
- Ensure that the selected warehouse corresponds to the location where
  the customer's deposit is stored.

4. Select a Product from the Deposit
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Choose a product that the customer currently has in deposit, which was
  previously added through a **sale using the ‘Sale to Deposit’ route**.

5. Set the Correct Route
^^^^^^^^^^^^^^^^^^^^^^^^

- Select the **Route**: ``(<warehouse_name>) / Delivery Stock Deposit``.

6. Review the Margin Calculation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- You will see that the **‘Margin’** and **‘Margin (%)’** fields in the
  line are automatically computed as **0**.

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

Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-sale-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-sale-workflow/issues/new?body=module:%20sale_stock_deposit_margin%0Aversion:%2016.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-sale-workflow <https://github.com/sygel-technology/sy-sale-workflow/tree/16.0/sale_stock_deposit_margin>`_ project on GitHub.

You are welcome to contribute.
