Commit Graph

591 Commits

Author SHA1 Message Date
Lionel Sausin
3cce4ff7e8 Revert changes to computation of _immediately_usable_qty
Commit 6c16913 changed the way we compute the immediately_usable_qty: instead of using the virtual stock, we used the sum of quants without reservations. But a quant may actually be reserved and still be available (for example it may be reserved for an internal move).
Fixes https://github.com/OCA/stock-logistics-warehouse/issues/79

Remove loop and use correct decorator

Restore the features of stock_available_immediately

The previous fix restored stock_available but then there was no way to exclude the incomming moves from the count. This belongs in stock_available_immediately, restoring it cleanly.
This commit also takes care to respect the distinction between templates and variants, so it should fix https://github.com/OCA/stock-logistics-warehouse/issues/73 too.

Restore the qty avail. to promise on variant treeview

PEP8
2020-12-24 22:19:28 +01:00
Laetitia Gangloff
fd076aa37e [FIX] stock_available : update sublocations computation 2020-12-24 22:19:28 +01:00
Giovanni francesco Capalbo
f064d99438 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2020-12-24 22:19:28 +01:00
gfcapalbo
455b98babe [FIX] corrected calculation of immediately_usable_qty on product.product and
product.template, now takes in account variants and correctly displays value.
[FLAKE8]

Removing duplicate modules and moving README.rst into __unported__

[ADD} location calculations

[FIX] typo
2020-12-24 22:19:28 +01:00
Lionel Sausin (Numérigraphe)
4905c4f201 [ADD] stock_available
Generic module to compute the stock quantity available to promise using several implementations.
stock_available_immediatly is changed to become the first optional implementation.
Cherry pick of commit 0b060f619f from the v7 branch

[IMP] stock_available* uses new API

[ADD] stock_available_mrp

Module to take immediate manufaturing capability into account in the stock quantity available to promise.

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_mrp to __unported__

[ADD] stock_available_sale

Take sale quotations into account in the stock quantity available to promise
Cherry-picked from 497068f5f5

Conflicts:
	stock_available/res_config.py

[DEL] move stock_available_sale to __unported__

[IMP] READMEs and TODOs

Cherry-picked from v7 at 8add4bea7e

Conflicts:
	__unported__/stock_available_mrp/__openerp__.py
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py

[IMP] respect product decimal precision

https://github.com/odoo/odoo/issues/5512 and b3e5a940e3 makes it clear the standard intends to support decimal precision on the product form.
2020-12-24 22:19:28 +01:00
Florian da Costa
1689ea3dbf [MIG] stock_location_lockdown: Migration to 14.0 2020-12-17 15:14:11 +01:00
Florian da Costa
9b5678f1ff [IMP] stock_location_lockdown: black, isort, prettier 2020-12-17 15:14:11 +01:00
OCA-git-bot
44cd53edcf stock_location_lockdown 12.0.1.1.0 2020-12-17 15:13:40 +01:00
Alexis de Lattre
776a14d12a [IMP] stock_location_lockdown: improve error message 2020-12-17 15:13:40 +01:00
OCA Transbot
1f26938497 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_location_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_location_lockdown/
2020-12-17 15:13:40 +01:00
OCA Transbot
234afbd021 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_location_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_location_lockdown/
2020-12-17 15:13:40 +01:00
黎伟杰
03f1c76393 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6 of 6 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_location_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_location_lockdown/zh_CN/
2020-12-17 15:13:40 +01:00
黎伟杰
20ccef56ee Added translation using Weblate (Chinese (Simplified)) 2020-12-17 15:13:40 +01:00
OCA-git-bot
64dfa49f84 [UPD] README.rst 2020-12-17 15:13:40 +01:00
oca-travis
dbae9de167 [UPD] Update stock_location_lockdown.pot 2020-12-17 15:13:40 +01:00
clementmbr
6cd4c8b24c [MIG] stock_location_lockdown : Migration to 12.0 2020-12-17 15:13:40 +01:00
OCA-git-bot
0cb2a152f6 [UPD] README.rst 2020-12-17 15:13:40 +01:00
OCA Transbot
047f9b1e4a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-10.0/stock-logistics-warehouse-10.0-stock_location_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-10-0/stock-logistics-warehouse-10-0-stock_location_lockdown/
2020-12-17 15:13:40 +01:00
OCA-git-bot
1a357d8414 stock_location_lockdown 10.0.1.1.0 2020-12-17 15:13:40 +01:00
oca-travis
3c90ff7e43 [UPD] Update stock_location_lockdown.pot 2020-12-17 15:13:40 +01:00
Sébastien BEAU
42d2035f34 fixup! [FIX] fix negative quant in blocked location 2020-12-17 15:13:40 +01:00
Sébastien BEAU
68c4573f97 fixup! [FIX] fix negative quant in blocked location 2020-12-17 15:13:40 +01:00
Sébastien BEAU
5766bfa2db [FIX] fix negative quant in blocked location
When forcing an outgoing move and then moving it. Odoo create a
negative quant. This quant should not be in the locked location
because no quand will go in it and so the negative quant will stay
here for ever
2020-12-17 15:13:40 +01:00
OCA-git-bot
56d4fcdd94 [ADD] icon.png 2020-12-17 15:13:40 +01:00
Pedro Castro Silva
af5840bc2a Translated using Weblate (Portuguese)
Currently translated at 80.0% (4 of 5 strings)

Translation: stock-logistics-warehouse-10.0/stock-logistics-warehouse-10.0-stock_location_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-10-0/stock-logistics-warehouse-10-0-stock_location_lockdown/pt/
2020-12-17 15:13:40 +01:00
Pedro Castro Silva
3bd66df171 Added translation using Weblate (Portuguese) 2020-12-17 15:13:40 +01:00
oca-travis
e44a40decf [UPD] Update stock_location_lockdown.pot 2020-12-17 15:13:40 +01:00
OCA-git-bot
2853086349 [UPD] README.rst 2020-12-17 15:13:40 +01:00
Alexis de Lattre
f1ae654e42 [MIG] stock_location_lockdown from v9 to v10
Improve README
2020-12-17 15:13:40 +01:00
Florian da Costa
3117a08439 Add module stock_location_lockdown for v9 2020-12-17 15:13:40 +01:00
oca-git-bot
90cd216a32 [IMP] update dotfiles [ci skip] 2020-12-11 20:21:16 +01:00
OCA Transbot
5116bc34db Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_manual_assign/
2020-12-05 01:56:20 +07:00
OCA-git-bot
a1256b0608 [UPD] README.rst 2020-12-05 01:56:20 +07:00
mreficent
87b4b217f4 [UPD] Eficent -> ForgeFlow 2020-12-05 01:56:20 +07:00
OCA Transbot
6116c8c945 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_manual_assign/
2020-12-05 01:56:20 +07:00
OCA-git-bot
ba82bab6f5 [UPD] README.rst 2020-12-05 01:56:20 +07:00
oca-travis
642de24437 [UPD] Update stock_quant_manual_assign.pot 2020-12-05 01:56:20 +07:00
Tony Gu
f45c84a38c [MIG] stock_quant_manual_assign: Migration to 13.0 2020-12-05 01:56:20 +07:00
Tony Gu
454ca05c6c [IMP] stock_quant_manual_assign: black, isort, prettier 2020-12-05 01:56:20 +07:00
Lois Rilo
e33c84a0fe [12.0][MIG] stock_quant_manual_assign 2020-12-05 01:56:20 +07:00
oca-travis
4cbd562442 [UPD] Update stock_quant_manual_assign.pot 2020-12-05 01:56:20 +07:00
Pedro M. Baeza
d81874dd07 [IMP] stock_quant_manual_assign: Add owner to criteria + reorder fields + add security groups + hook 2020-12-05 01:56:20 +07:00
Pedro M. Baeza
aefe6ad126 [FIX] stock_quant_manual_assign: Related fields are not filled if not default them 2020-12-05 01:56:20 +07:00
Pedro M. Baeza
85c7cb5206 [IMP] stock_quant_manual_assign:
* Better layout
* Remove active_id dependency in some computed fields
* Clean code
* Refine constraint
* Take into account if the current line is previously reserved before clicking on the button.
2020-12-05 01:56:20 +07:00
cubells
34a06881e9 [MIG] stock_quant_manual_assign: Migration to 11.0 2020-12-05 01:56:19 +07:00
Fanha Giang
2c251e13e9 11.0-mig-stock_quant_manual_assign 2020-12-05 01:56:19 +07:00
Fanha Giang
d3c591eda8 [MIG] stock_quant_manual_assign: Migration to 10.0 2020-12-05 01:56:17 +07:00
OCA-git-bot
242d7ebf9a [ADD] setup.py 2020-12-04 10:07:33 +00:00
OCA-git-bot
34a689b147 [UPD] addons table in README.md 2020-12-04 10:07:31 +00:00
oca-travis
74178ceeac [UPD] Update stock_move_location.pot 2020-12-04 09:54:30 +00:00