Commit Graph

1731 Commits

Author SHA1 Message Date
OCA-git-bot
a03fa09842 [UPD] README.rst 2021-06-11 09:16:46 +02:00
Lois Rilo
68270f740f [11.0][MIG] procurement_auto_create_group 2021-06-11 09:16:46 +02:00
OCA Transbot
0fd3fde4dc OCA Transbot updated translations from Transifex
[UPD] Update procurement_auto_create_group.pot
2021-06-11 09:16:46 +02:00
lreficent
9ba05f9bf5 [10.0][MIG] procurement_auto_create_group 2021-06-11 09:16:46 +02:00
OCA Transbot
b64820fef8 OCA Transbot updated translations from Transifex 2021-06-11 09:16:46 +02:00
Jordi Ballester
aeff63cbfb auto_create_group should be false when group_propagation_option is not 'propagate' 2021-06-11 09:16:46 +02:00
lreficent
fdf4f4cdbe hide if propagation option is not "propagate" 2021-06-11 09:16:46 +02:00
lreficent
98b1a6d24c [9.0][ADD] procurement_auto_create_group: add tests 2021-06-11 09:16:46 +02:00
Jordi Ballester
ffb47f6d7c add module 'procurement_auto_create_group' to 9.0 2021-06-11 09:16:46 +02:00
OCA-git-bot
5d724f7a69 [ADD] setup.py 2021-06-10 07:28:35 +00:00
OCA-git-bot
3f34ad813a [UPD] README.rst 2021-06-10 07:28:34 +00:00
OCA-git-bot
ece3b6cae8 [UPD] addons table in README.md 2021-06-10 07:28:32 +00:00
oca-travis
27a636ca36 [UPD] Update stock_quant_manual_assign.pot 2021-06-10 07:13:07 +00:00
OCA-git-bot
f9b9f96381 Merge PR #1061 into 14.0
Signed-off-by hparfr
2021-06-10 07:06:44 +00:00
OCA-git-bot
31e324af86 [UPD] addons table in README.md 2021-06-09 13:50:46 +00:00
OCA-git-bot
0b515d63d5 stock_available_mrp 14.0.1.0.2 2021-06-09 13:50:40 +00:00
OCA-git-bot
4d879e106f Merge PR #1174 into 14.0
Signed-off-by pedrobaeza
2021-06-09 13:23:23 +00:00
sbejaoui
7414c84313 [FIX] - local variable referenced before assignment 2021-06-09 15:21:32 +02:00
sbejaoui
c4220b79a8 [IMP] - use available_quantity to compute contains_unreserved 2021-06-09 10:25:25 +02:00
sbejaoui
0affe055f6 [14.0][MIG] - stock_available_unreserved 2021-06-07 10:44:28 +02:00
OCA Transbot
a51726823e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_available_mrp/
2021-06-07 06:44:24 +00:00
OCA-git-bot
14154b6cef [UPD] addons table in README.md 2021-06-07 06:28:16 +00:00
OCA-git-bot
c3b9dd1f8c stock_available_mrp 14.0.1.0.1 2021-06-07 06:28:10 +00:00
OCA-git-bot
83b831dd7e [ADD] setup.py 2021-06-07 06:28:10 +00:00
OCA-git-bot
8971d3e988 [UPD] README.rst 2021-06-07 06:28:10 +00:00
OCA-git-bot
a98953a506 [UPD] addons table in README.md 2021-06-07 06:28:07 +00:00
oca-travis
995bca601f [UPD] Update stock_available_mrp.pot 2021-06-07 06:12:40 +00:00
OCA-git-bot
5a7ee7c8fd Merge PR #1162 into 14.0
Signed-off-by rousseldenis
2021-06-07 06:06:27 +00:00
OCA-git-bot
ddaeaffe4b pre-commit update 2021-06-03 17:49:27 +02:00
OCA-git-bot
71c19efffb stock_available_unreserved 13.0.1.0.1 2021-06-03 17:49:27 +02:00
hveficent
1fe22f9750 [FIX] Fix compute contains_unreserved on NewId records 2021-06-03 17:49:27 +02:00
OCA Transbot
d7eccf129c 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_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_available_unreserved/
2021-06-03 17:49:27 +02:00
OCA-git-bot
4a44b2d470 [UPD] README.rst 2021-06-03 17:49:27 +02:00
oca-travis
074bc3b860 [UPD] Update stock_available_unreserved.pot 2021-06-03 17:49:27 +02:00
Lois Rilo
0a54e9f0eb [13.0][MIG] stock_available_unreserved
Standard migration. Also some copyrights are removed because they were added by mistake in the fist place (copy+paste issues ;) )
2021-06-03 17:49:27 +02:00
Lois Rilo
6a843ff7ae [IMP] stock_available_unreserved: black, isort 2021-06-03 17:49:27 +02:00
OCA Transbot
f9e1d04e1c 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_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_unreserved/
2021-06-03 17:49:27 +02:00
OCA-git-bot
5a8d4d8648 [UPD] README.rst 2021-06-03 17:49:27 +02:00
oca-travis
b1e9d9a0f2 [UPD] Update stock_available_unreserved.pot 2021-06-03 17:49:27 +02:00
Lois Rilo
5b266b7db0 [12.0][UPD] stock_available_unreserved:
* update author's name after recent rebranding of Eficent to ForgeFlow.
* change license to lgpl as agreed by the authors.
* update readme to new format.
2021-06-03 17:49:27 +02:00
Galoperd
89c6559392 Translated using Weblate (Spanish)
Currently translated at 100.0% (13 of 13 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_unreserved/es/
2021-06-03 17:49:27 +02:00
黎伟杰
76b7493350 Translated using Weblate (Chinese (Simplified))
Currently translated at 38.5% (5 of 13 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_unreserved/zh_CN/
2021-06-03 17:49:27 +02:00
OCA Transbot
9d8e4b1e36 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_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_unreserved/
2021-06-03 17:49:27 +02:00
oca-travis
e08c720328 [UPD] Update stock_available_unreserved.pot 2021-06-03 17:49:27 +02:00
ougc27
59c04a0761 [ADD][stock_available_unreserved] - Missing depends on qty_available_not_reserved compute method in order to update the quantity. 2021-06-03 17:49:27 +02:00
ougc27
4456189033 [MIG] stock_available_unreserved: Migration to V12 2021-06-03 17:49:27 +02:00
Osoul
9e7a7af51e Added translation using Weblate (Arabic) 2021-06-03 17:49:27 +02:00
oca-travis
a4cc993ed9 [UPD] Update stock_available_unreserved.pot 2021-06-03 17:49:27 +02:00
Atte Isopuro
e37afcaba9 stock_available_unreserved: allow searching by unreserved quantities 2021-06-03 17:49:27 +02:00
Guewen Baconnier
e707c810e3 Fix computation of stock available unreserved
The computation of the unreserved available amount using the
StockQuant._get_available_quantity was wrong as soon as more than one
quant was found for the same product. It can easily happen when you have
sublocations and a quant in each location.

The reason is that the algorithm was:

1. searching for all the quants for a given product
2. calling StockQuant._get_available_quantity for each quant
3. _get_available_quantity is an @api.model method, which itself will
search for all quants for the product and the given location and
children

Which means that if you have these locations:

Stock
Stock > Bin A
Stock > Bin B

And these quants:

1. Product: Product A
   Location: Bin A
   Quantity: 60
   Reserved: 0

2. Product: Product A
   Location: Bin B
   Quantity: 10
   Reserved: 0

Instead of 70, the result was 140. (One loop for each quant, each loop
recomputing the total quantity in _get_available_quantity, all summed
togethed, for each new quant, an additional sum would be added).

Ultimately, the _get_available_quantity method does the sum of (quantity
- quantity reserved). This commit uses the same logic than the 10.0
branch, it finds the quants contextually using
ProductProduct._get_domain_locations and get the available quantity as
the sum of (quantity - quantity reserved).

We can't really use StockQuant._get_available_quantity because this one
expects a location, while here we don't necessarily know it.

I removed _product_available_not_res_hook which seems to have no
purpose, it does not receive the result of the computation and its own
result is unused.
2021-06-03 17:49:27 +02:00