Skip to content

Commit

Permalink
Merge pull request #1368 from OCA/17.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/stock-logistics-warehouse (17.0)
  • Loading branch information
bt-admin authored Mar 21, 2024
2 parents 5902b9a + a40ae1c commit aa8c893
Show file tree
Hide file tree
Showing 83 changed files with 47,372 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ addon | version | maintainers | summary
[scrap_reason_code](scrap_reason_code/) | 17.0.1.0.0 | [![bodedra](https://github.com/bodedra.png?size=30px)](https://github.com/bodedra) | Reason code for scrapping
[stock_demand_estimate](stock_demand_estimate/) | 17.0.1.0.0 | | Allows to create demand estimates.
[stock_mts_mto_rule](stock_mts_mto_rule/) | 17.0.1.0.0 | | Add a MTS+MTO route
[stock_reserve](stock_reserve/) | 17.0.1.0.0 | | Stock reservations on products
[stock_warehouse_calendar](stock_warehouse_calendar/) | 17.0.1.0.0 | [![JordiBForgeFlow](https://github.com/JordiBForgeFlow.png?size=30px)](https://github.com/JordiBForgeFlow) | Adds a calendar to the Warehouse

[//]: # (end addons)
Expand Down
1 change: 1 addition & 0 deletions scrap_reason_code/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down
3 changes: 2 additions & 1 deletion setup/_metapackage/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[project]
name = "odoo-addons-oca-stock-logistics-warehouse"
version = "17.0.20240318.1"
version = "17.0.20240320.0"
dependencies = [
"odoo-addon-scrap_reason_code>=17.0dev,<17.1dev",
"odoo-addon-stock_demand_estimate>=17.0dev,<17.1dev",
"odoo-addon-stock_mts_mto_rule>=17.0dev,<17.1dev",
"odoo-addon-stock_reserve>=17.0dev,<17.1dev",
"odoo-addon-stock_warehouse_calendar>=17.0dev,<17.1dev",
]
classifiers=[
Expand Down
102 changes: 102 additions & 0 deletions stock_reserve/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
=================
Stock Reservation
=================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1dd6a7403dc0e6eff14b5cd42d98e5af95aa2cef4860328daf1d14bbe778b8ad
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_reserve
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_reserve
: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-warehouse&target_branch=17.0
:alt: Try me on Runboat

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

Allows to create stock reservations on products.

Each reservation can have a validity date, once passed, the reservation
is automatically lifted.

The reserved products are substracted from the virtual stock. It means
that if you reserved a quantity of products which bring the virtual
stock below the minimum, the orderpoint will be triggered and new
purchase orders will be generated. It also implies that the max may be
exceeded if the reservations are canceled.

If ownership of stock is active in the stock settings, you can specify
the owner on the reservation.

**Table of contents**

.. contents::
:local:

Usage
=====

To make a stock reservation:

1. Go to *Inventory > Products*.
2. Select or create one product with stock.
3. Click on *Stock Reservations* smart button.
4. Create one reservation.
5. Press the button *Reserve*.

You can release a reservation by clicking on the button *Release*

Known issues / Roadmap
======================

- Review multicompany. Take a look of
[this](https://github.com/OCA/stock-logistics-warehouse/pull/1346) PR

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

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

* Camptocamp

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-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_reserve>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_reserve/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2013 Camptocamp SA - Guewen Baconnier
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import model
22 changes: 22 additions & 0 deletions stock_reserve/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2013 Camptocamp SA - Guewen Baconnier
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Reservation",
"summary": "Stock reservations on products",
"version": "17.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"category": "Warehouse",
"license": "AGPL-3",
"complexity": "normal",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"depends": ["stock"],
"data": [
"view/stock_reserve.xml",
"view/product.xml",
"data/stock_data.xml",
"security/ir.model.access.csv",
"data/cron.xml",
],
"auto_install": False,
"installable": True,
}
29 changes: 29 additions & 0 deletions stock_reserve/data/cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record forcecreate="True" id="ir_cron_reserve_waiting_confirmed" model="ir.cron">
<field
name="name"
>Stock reservation: Assign waiting/confirmed reserve moves</field>
<field name="model_id" ref="model_stock_reservation" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="state">code</field>
<field name="code">model.assign_waiting_confirmed_reserve_moves()</field>
</record>
<record forcecreate="True" id="ir_cron_release_stock_reservation" model="ir.cron">
<field
name="name"
>Release the stock reservation having a passed validity date</field>
<field name="model_id" ref="model_stock_reservation" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="state">code</field>
<field name="code">model.release_validity_exceeded()</field>
</record>
</odoo>
8 changes: 8 additions & 0 deletions stock_reserve/data/stock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="stock_location_reservation" model="stock.location">
<field name="name">Reservation Stock</field>
<field name="location_id" ref="stock.stock_location_locations" />
<field name="company_id" />
</record>
</odoo>
Loading

0 comments on commit aa8c893

Please sign in to comment.