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

12.0 mig stock_reserve #637

Closed
wants to merge 87 commits into from
Closed
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
eba4edb
[ADD] started a generic stock reservation module (stock_reserve), it …
guewen Sep 5, 2013
68a69e4
[IMP] stock_reserve: add views, now able to reserve and release a mov…
guewen Sep 5, 2013
7ab3b9a
[IMP] stock_reserve: views, keep the stock reservation after release
guewen Sep 5, 2013
ebcd317
[ADD] cron which lift the reservation with an passed validity date
guewen Sep 5, 2013
24d1c1e
[ADD] security file
guewen Sep 5, 2013
e51b6d3
[ADD] button to open the reservation move
guewen Sep 5, 2013
79f497d
[FIX] open the reservation move in form view
guewen Sep 5, 2013
8b0fc32
[CHG] views refinements
guewen Sep 5, 2013
51298ba
[ADD] link on the form view to display or create the stock reservations
guewen Sep 5, 2013
8042b1e
[CHG] the location_id and location_dest_id are now only default value…
guewen Sep 5, 2013
6083aff
[ADD] started stock_reserve_sale to reserve lines of quotations
guewen Sep 5, 2013
8ae6965
[FIX] the move should be assigned and not done: items are not physica…
guewen Sep 6, 2013
56c6f8b
[IMP] continued the stock_reserve_sale module
guewen Sep 6, 2013
c38faf2
[ADD] test for the reservation
guewen Sep 9, 2013
bd991a5
[IMP] description in __openerp__.py
guewen Sep 10, 2013
ee4b9e6
mark unported module as uninstallable
gurneyalex Jul 1, 2014
3e709d2
reactivate module stock_reserve
yvaucher Sep 1, 2014
ea5af42
port models and method to api 8.0
yvaucher Sep 1, 2014
de99d77
port onchanges
yvaucher Sep 1, 2014
0903080
change type to stock.picking.type
yvaucher Sep 1, 2014
8cc0533
improve descriptor
yvaucher Sep 1, 2014
50a04a4
improve action_view_reservations from product
yvaucher Sep 1, 2014
8fd5def
replace product_qty by product_uom_qty
yvaucher Sep 1, 2014
e56325c
fix default_get to ensure product_qty is not set
yvaucher Sep 3, 2014
cf4dda6
some products' fields moved in stock_accout. removing them to make th…
yvaucher Sep 3, 2014
5d6fa71
fix flake8 warnings
gurneyalex Sep 8, 2014
72e434e
update test
gurneyalex Sep 8, 2014
fa31d38
more stock_reserve tests
gurneyalex Sep 8, 2014
25ea775
product_reserve: test orderpoint
gurneyalex Sep 8, 2014
98de026
fix typo in docstring
gurneyalex Sep 8, 2014
e7be7f1
add test for expiration of reservations
gurneyalex Sep 8, 2014
99f2972
fix button to open related move
yvaucher Sep 8, 2014
1ba7ec3
fix domain using list instead of string
yvaucher Sep 8, 2014
87c967f
the reservation should reserve a quant
lepistone Nov 26, 2014
5752adf
refactor: get rid of move_recs
lepistone Nov 26, 2014
d050173
[UPD] move out from unported to 8 for update
gfcapalbo Nov 18, 2014
e5d3263
[ADD] removed view
gfcapalbo Feb 18, 2015
9f64cd7
[FIX] Stock_reserve change revert
gfcapalbo Feb 25, 2015
124fadc
Update product.xml
gfcapalbo Feb 25, 2015
7e8c411
Update product.xml
gfcapalbo Feb 25, 2015
8152d37
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
809a320
fix #42: reserve location should be outside WH
lepistone Mar 17, 2015
258350c
bump and migrate
lepistone Mar 20, 2015
b62561c
find XML id by module, name
lepistone Mar 24, 2015
08ddce6
make stock_reserve owner-aware
lepistone Mar 17, 2015
0b82888
fix crash: excepted singleton
lepistone Mar 20, 2015
071d034
fix reservation_count computation
lepistone Mar 30, 2015
abec10b
refactor: delegate to variants, use self.id
lepistone Mar 30, 2015
249aaae
refactor tests, improve failures
lepistone Mar 30, 2015
2ea5887
Added the translation template file and Finnish translations to stock…
mlaitinen Apr 23, 2015
f586f69
show reservation location in tree and groupby
lepistone May 11, 2015
4d6aae4
Add README.rst and remove description from __openerp__.py
Jun 1, 2015
d2082f7
Multiple reservations can now be released at once. This fixes issue #50.
mlaitinen Apr 25, 2015
802d76f
Replaced for loop in release() with mapped()
mlaitinen Jul 19, 2015
e21006d
Add Spanish translation of stock reserve modules
Jul 30, 2015
d4309d0
Change translation stock/existencias
Jul 30, 2015
fc9dfe0
update travis config, setup transifex
gurneyalex Sep 15, 2015
3784251
force recomputation of stock.location hierachy
gurneyalex Sep 15, 2015
862a008
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
726b20a
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
111b389
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
b174e0e
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
580e3cd
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
a3a4468
stock_reserve: migration to 10.0
Jan 5, 2017
0326173
stock_reserve: new way of getting action in python code
Jan 6, 2017
e95c021
stock_reserve: Take Picking Out as default type as internal pickings …
Jan 6, 2017
ffcef1c
stock_reserve: show reservation button on product for stockable only
Jan 6, 2017
b58d4ae
stock_reserve: test migration to 10.0
Jan 6, 2017
92f3f5c
stock_reserve: fix wrong inherit template for product form
Apr 24, 2017
205978b
stock_reserve: drop superfluous None for dicts .get
Apr 24, 2017
143ef2f
stock_reserve: add option for Employees to read stock.reservation. Wi…
Apr 24, 2017
0c9e718
OCA Transbot updated translations from Transifex
oca-transbot Jul 29, 2017
50b8a84
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
2cd3ade
OCA Transbot updated translations from Transifex
oca-transbot Jan 17, 2018
49b0a9c
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
c8aef2d
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
c4353cf
[UPD] Update stock_reserve.pot
oca-travis Jun 18, 2018
337347d
[UPD] Update stock_reserve.pot
oca-travis Jan 29, 2019
fc2ea00
Update translation files
oca-transbot Jan 29, 2019
a1350d8
[UPD] Update stock_reserve.pot
oca-travis Feb 8, 2019
8be80ab
Update translation files
oca-transbot Feb 8, 2019
d182801
[ADD] icon.png
OCA-git-bot Apr 3, 2019
82c24ec
[MIG] stock_reserve: Migration to 12.0
hzh0292 Jun 28, 2019
305ea71
Fixed according to code reviewer
hzh0292 Jun 28, 2019
0b50868
Change test dir to tests,who can help me change the test file to 12.0…
hzh0292 Jun 29, 2019
ec9d797
Change back tests dir to test,who can help me change the test file to…
hzh0292 Jun 29, 2019
88be111
Use float_compare instead
hzh0292 Oct 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 56 additions & 0 deletions stock_reserve/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Stock Reservation
=================

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.


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
`here <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_reserve%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Leonardo Pistone <leonardo.pistone@camptocamp.com>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.

1 change: 1 addition & 0 deletions stock_reserve/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions stock_reserve/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{'name': 'Stock Reservation',
'summary': 'Stock reservations on products',
'version': '12.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': ['views/stock_reserve.xml',
'views/product.xml',
'data/stock_data.xml',
'security/ir.model.access.csv',
],
'auto_install': False,
'test': ['test/stock_reserve.yml',
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yml tests are deprecated. Could you convert to xml ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,it's a problem.Is there somebody can help me to convert the yml to python?

],
'installable': True,
}
24 changes: 24 additions & 0 deletions stock_reserve/data/stock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data 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>


<!-- Release the stock.reservation when the validity date has passed -->
<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="state">code</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 eval="False" name="doall" />
<field name="code">model.release_validity_exceeded()</field>
</record>

</data>
</odoo>