Metadata-Version: 2.1
Name: odoo-addon-stock_move_line_open_lot
Version: 17.0.1.0.0.1
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Summary: Adds a button in the stock move line tree view to open the related lot record in form view.
Home-page: https://github.com/sygel-technology/sy-stock-logistics-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

========================
Stock Move Line Open Lot
========================

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

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

|badge1| |badge2| |badge3|

The existing button to the right of the lot/serial number, which
currently opens a reduced (quick) view, is removed. It is replaced by a
new button that opens the full form view of the corresponding lot/serial
number when clicked.

This change is controlled by two new boolean fields:

- show_lot_button: If enabled, this field makes the icon "Open Lot Form"
  button visible on the picking form. When this button is clicked, it
  opens the full form view of the corresponding lot/serial number.

- lot_form_as_popup: If enabled, this field ensures the lot form opens
  as a popup/modal instead of a full form view.

**Table of contents**

.. contents::
   :local:

Usage
=====

This module modifies the behavior of the lot/serial number button in
stock picking operations.

Instead of opening a quick view, the button now opens the "full form
view" of the related lot or serial number.

To enable and control this behavior:

1. Go to Inventory > Configuration > Operation Types.
2. Open the desired picking type (Receipts, Delivery Orders,...).
3. In General page /Lot/Serial Numbers section, configure the fields.

Usage Example

- Enable the "Show Lot Button" and/or "Open Lot Form as Popup" on a
  picking type.
- Create or open a picking that uses tracked products (lot or serial
  numbers)
- On the picking lines, you will see a icon in lot/serial number.
- Clicking it will open the full form view of the corresponding lot,
  according to the selected display mode.

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

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

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

  - Valentin Vinagre
  - Manuel Regidor
  - Ángel Rivas

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

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

You are welcome to contribute.
