Metadata-Version: 2.1
Name: odoo-addon-stock_available_portal_owner
Version: 17.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: Consigned stock availability query from the Portal for owners (owner_id)
Home-page: https://github.com/OCA/stock-logistics-availability
License: AGPL-3
Author: Binhex, 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
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

============================
Stock Available Portal Owner
============================

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

.. |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-OCA%2Fstock--logistics--availability-lightgray.png?logo=github
    :target: https://github.com/OCA/stock-logistics-availability/tree/17.0/stock_available_portal_owner
    :alt: OCA/stock-logistics-availability
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/stock-logistics-availability-17-0/stock-logistics-availability-17-0-stock_available_portal_owner
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-availability&target_branch=17.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a new section to the Odoo Portal, "My Consigned Stock",
allowing owners of consigned goods (owner_id) to independently check the
availability of their own products.

Isolation of information between owners is guaranteed for every quantity
shown: on hand and free stock rely on the standard ``owner_id`` concept
of ``stock.quant``, while incoming and outgoing quantities are computed
from the pending stock moves whose originating operation
(``stock.picking``) or reservation is linked to the authenticated owner.
Forecasted stock is derived exclusively from these owner-isolated
figures. Products are only listed when they have identifiable stock or
pending movements for the authenticated owner.

**Table of contents**

.. contents::
   :local:

Configuration
=============

For a third party to be able to check their consigned stock from the
Portal:

1. Create or identify the ``res.partner`` that will act as the owner of
   the goods.
2. Register the corresponding stock in ``stock.quant`` by setting the
   ``owner_id`` field to that partner (via the standard
   reception-with-ownership processes, or via the "Update Quantity"
   wizard specifying the owner).
3. Grant Portal access to a user linked to that partner (or to a child
   contact of the same commercial entity).

No additional configuration is required: the module does not introduce
any system parameters or specific settings.

Usage
=====

For the Portal end user:

1. Access the Customer Portal (``/my``) with an authenticated user.
2. If the user has stock associated as an owner (``owner_id``), the "My
   Consigned Stock" entry will be displayed.
3. Upon entering, the list of products will be shown with the
   availability figures corresponding exclusively to their owner:

   - On hand stock
   - Free stock
   - Incoming
   - Outgoing
   - Forecasted stock

4. It is possible to search by name or internal reference, sort the list
   and filter by warehouse when several applicable warehouses exist.

Selecting a warehouse never expands the accessible scope of information:
it only allows narrowing the query within the set already authorized for
the authenticated owner.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-availability/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/OCA/stock-logistics-availability/issues/new?body=module:%20stock_available_portal_owner%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
-------

* Binhex

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

- `Binhex <https://binhex.cloud>`__:

     - Ariel Torres Galvez
     - Abraham J. Febres

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

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/stock-logistics-availability <https://github.com/OCA/stock-logistics-availability/tree/17.0/stock_available_portal_owner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
