-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
Closed
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 68a69e4
[IMP] stock_reserve: add views, now able to reserve and release a mov…
guewen 7ab3b9a
[IMP] stock_reserve: views, keep the stock reservation after release
guewen ebcd317
[ADD] cron which lift the reservation with an passed validity date
guewen 24d1c1e
[ADD] security file
guewen e51b6d3
[ADD] button to open the reservation move
guewen 79f497d
[FIX] open the reservation move in form view
guewen 8b0fc32
[CHG] views refinements
guewen 51298ba
[ADD] link on the form view to display or create the stock reservations
guewen 8042b1e
[CHG] the location_id and location_dest_id are now only default value…
guewen 6083aff
[ADD] started stock_reserve_sale to reserve lines of quotations
guewen 8ae6965
[FIX] the move should be assigned and not done: items are not physica…
guewen 56c6f8b
[IMP] continued the stock_reserve_sale module
guewen c38faf2
[ADD] test for the reservation
guewen bd991a5
[IMP] description in __openerp__.py
guewen ee4b9e6
mark unported module as uninstallable
gurneyalex 3e709d2
reactivate module stock_reserve
yvaucher ea5af42
port models and method to api 8.0
yvaucher de99d77
port onchanges
yvaucher 0903080
change type to stock.picking.type
yvaucher 8cc0533
improve descriptor
yvaucher 50a04a4
improve action_view_reservations from product
yvaucher 8fd5def
replace product_qty by product_uom_qty
yvaucher e56325c
fix default_get to ensure product_qty is not set
yvaucher cf4dda6
some products' fields moved in stock_accout. removing them to make th…
yvaucher 5d6fa71
fix flake8 warnings
gurneyalex 72e434e
update test
gurneyalex fa31d38
more stock_reserve tests
gurneyalex 25ea775
product_reserve: test orderpoint
gurneyalex 98de026
fix typo in docstring
gurneyalex e7be7f1
add test for expiration of reservations
gurneyalex 99f2972
fix button to open related move
yvaucher 1ba7ec3
fix domain using list instead of string
yvaucher 87c967f
the reservation should reserve a quant
lepistone 5752adf
refactor: get rid of move_recs
lepistone d050173
[UPD] move out from unported to 8 for update
gfcapalbo e5d3263
[ADD] removed view
gfcapalbo 9f64cd7
[FIX] Stock_reserve change revert
gfcapalbo 124fadc
Update product.xml
gfcapalbo 7e8c411
Update product.xml
gfcapalbo 8152d37
Add OCA as author of OCA addons
gurneyalex 809a320
fix #42: reserve location should be outside WH
lepistone 258350c
bump and migrate
lepistone b62561c
find XML id by module, name
lepistone 08ddce6
make stock_reserve owner-aware
lepistone 0b82888
fix crash: excepted singleton
lepistone 071d034
fix reservation_count computation
lepistone abec10b
refactor: delegate to variants, use self.id
lepistone 249aaae
refactor tests, improve failures
lepistone 2ea5887
Added the translation template file and Finnish translations to stock…
mlaitinen f586f69
show reservation location in tree and groupby
lepistone 4d6aae4
Add README.rst and remove description from __openerp__.py
d2082f7
Multiple reservations can now be released at once. This fixes issue #50.
mlaitinen 802d76f
Replaced for loop in release() with mapped()
mlaitinen e21006d
Add Spanish translation of stock reserve modules
d4309d0
Change translation stock/existencias
fc9dfe0
update travis config, setup transifex
gurneyalex 3784251
force recomputation of stock.location hierachy
gurneyalex 862a008
OCA Transbot updated translations from Transifex
oca-transbot 726b20a
[UPD] prefix versions with 8.0
sbidoul 111b389
[MIG] Make modules uninstallable
pedrobaeza b174e0e
[FIX] remove en.po that was erroneously created by transbot
sbidoul 580e3cd
[MIG] Rename manifest files
pedrobaeza a3a4468
stock_reserve: migration to 10.0
0326173
stock_reserve: new way of getting action in python code
e95c021
stock_reserve: Take Picking Out as default type as internal pickings …
ffcef1c
stock_reserve: show reservation button on product for stockable only
b58d4ae
stock_reserve: test migration to 10.0
92f3f5c
stock_reserve: fix wrong inherit template for product form
205978b
stock_reserve: drop superfluous None for dicts .get
143ef2f
stock_reserve: add option for Employees to read stock.reservation. Wi…
0c9e718
OCA Transbot updated translations from Transifex
oca-transbot 50b8a84
OCA Transbot updated translations from Transifex
oca-transbot 2cd3ade
OCA Transbot updated translations from Transifex
oca-transbot 49b0a9c
OCA Transbot updated translations from Transifex
oca-transbot c8aef2d
remove obsolete .pot files [ci skip]
sbidoul c4353cf
[UPD] Update stock_reserve.pot
oca-travis 337347d
[UPD] Update stock_reserve.pot
oca-travis fc2ea00
Update translation files
oca-transbot a1350d8
[UPD] Update stock_reserve.pot
oca-travis 8be80ab
Update translation files
oca-transbot d182801
[ADD] icon.png
OCA-git-bot 82c24ec
[MIG] stock_reserve: Migration to 12.0
hzh0292 305ea71
Fixed according to code reviewer
hzh0292 0b50868
Change test dir to tests,who can help me change the test file to 12.0…
hzh0292 ec9d797
Change back tests dir to test,who can help me change the test file to…
hzh0292 88be111
Use float_compare instead
hzh0292 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
], | ||
'installable': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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?