Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] stock_reserve 15.0 #1485

Merged
merged 35 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cdace1f
[ADD] started a generic stock reservation module (stock_reserve), it …
guewen Sep 5, 2013
20bae06
mark unported module as uninstallable
gurneyalex Jul 1, 2014
8411366
reactivate module stock_reserve
yvaucher Sep 1, 2014
eb3d861
fix flake8 warnings
gurneyalex Sep 8, 2014
3371709
update test
gurneyalex Sep 8, 2014
e08c0a1
fix button to open related move
yvaucher Sep 8, 2014
5f6089c
the reservation should reserve a quant
lepistone Nov 26, 2014
372413b
[UPD] move out from unported to 8 for update
gfcapalbo Nov 18, 2014
5186747
[ADD] removed view
gfcapalbo Feb 18, 2015
6e44ada
[FIX] Stock_reserve change revert
gfcapalbo Feb 25, 2015
c631419
Update product.xml
gfcapalbo Feb 25, 2015
70592f1
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
909773e
fix #42: reserve location should be outside WH
lepistone Mar 17, 2015
9881046
Added the translation template file and Finnish translations to stock…
mlaitinen Apr 23, 2015
8b438d5
show reservation location in tree and groupby
lepistone May 11, 2015
5a67544
Add README.rst and remove description from __openerp__.py
Jun 1, 2015
c566f8a
Multiple reservations can now be released at once. This fixes issue #50.
mlaitinen Apr 25, 2015
ad87aa9
Replaced for loop in release() with mapped()
mlaitinen Jul 19, 2015
80209a2
Add Spanish translation of stock reserve modules
Jul 30, 2015
a71ec37
Change translation stock/existencias
Jul 30, 2015
df92841
update travis config, setup transifex
gurneyalex Sep 15, 2015
90fffd0
force recomputation of stock.location hierachy
gurneyalex Sep 15, 2015
ffefec7
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
17be489
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
25bbd60
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
bf4fb18
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
c153bd6
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
e936ebc
stock_reserve: migration to 10.0
Jan 5, 2017
bf72d65
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
4ff3ef4
[IMP] stock_reserve: black, isort, prettier
CarlosRoca13 Jul 23, 2021
a38687e
[MIG] stock_reserve: Migration to v13.0
CarlosRoca13 Jul 23, 2021
e8ddc0b
[UPD] README.rst
OCA-git-bot Jul 28, 2021
891e7c0
[FIX+IMP] Update dotfiles + switch to GH actions
pedrobaeza May 28, 2022
1a8e6fc
[IMP] stock_reserve: black, isort
flachica Sep 14, 2022
2261a8b
[MIG] stock_reserve 15.0:
flachica Sep 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup/stock_reserve/odoo/addons/stock_reserve
6 changes: 6 additions & 0 deletions setup/stock_reserve/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
98 changes: 98 additions & 0 deletions stock_reserve/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
=================
Stock Reservation
=================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/13.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-13-0/stock-logistics-warehouse-13-0-stock_reserve
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/13.0
:alt: Try me on Runbot

|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:

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

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

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

* Review multicompany. Take a look of 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_reserve%0Aversion:%2013.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/13.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": "15.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>
7 changes: 7 additions & 0 deletions stock_reserve/data/stock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?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" />
</record>
</odoo>
Loading