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
mpanarin
70d106b243
[MIG] stock_available_unreserved: migrate Odoo 11
2021-06-03 17:49:27 +02:00
Denis Roussel
53f8f29a4e
[FIX] stock_available: Some affectations
2021-06-03 17:49:27 +02:00
Laurent Mignon (ACSONE)
1e2f47c597
[IMP] stock_available_unreserved: Improve perf in stock computation;
...
Read quants without lang into the context to avoid sql join on ir.translations
Iter on product with prefetch_fields=False and lang='' to avoid reading useless column ad join on ir.translations
2021-06-03 17:49:27 +02:00
Cédric Pigeon
3c896fc9bb
[CHG] optimize stock computation by avoiding to call useless compute
2021-06-03 17:49:27 +02:00
mreficent
b9403b39f2
[IMP] fast compute
...
_product_available() method is computed only once by location
2021-06-03 17:49:27 +02:00
Stefan Rijnhart
3df595033b
[MIG] stock_available_unreserved
2021-06-03 17:49:27 +02:00
OCA Transbot
948fedd74f
OCA Transbot updated translations from Transifex
2021-06-03 17:49:27 +02:00
Jordi Ballester Alomar
1d6f01f59e
new module 'stock_available_unreserved' ( #206 )
...
* [ADD] new module 'stock_available_unreserved'
2021-06-03 17:49:27 +02:00
JrAdhoc
8bb6375f92
Translated using Weblate (Spanish)
...
Currently translated at 92.3% (157 of 170 strings)
Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_request
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_request/es/
2021-05-26 18:47:48 +00:00
oca-git-bot
bbd63f2737
[IMP] update dotfiles [ci skip]
2021-05-14 19:33:48 +02:00
Rémi
27d94353b4
Translated using Weblate (French)
...
Currently translated at 100.0% (16 of 16 strings)
Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-scrap_reason_code
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-scrap_reason_code/fr/
2021-05-12 08:47:41 +00:00
Rémi
cb5416631c
Added translation using Weblate (French)
2021-05-12 05:52:30 +00:00
OCA-git-bot
7b8de31364
[ADD] setup.py
2021-05-09 01:54:07 +00:00
OCA-git-bot
17a8e2cac2
[UPD] README.rst
2021-05-09 01:54:07 +00:00
OCA-git-bot
2892919de2
[UPD] addons table in README.md
2021-05-09 01:54:04 +00:00
oca-travis
8fa8795c5b
[UPD] Update stock_location_position.pot
2021-05-08 23:29:06 +00:00
OCA-git-bot
9c0d6dc2a2
Merge PR #1076 into 14.0
...
Signed-off-by dreispt
2021-05-08 22:13:42 +00:00
OCA-git-bot
1ab9418db7
[UPD] addons table in README.md
2021-04-25 17:56:59 +00:00
OCA-git-bot
b4e8c29e5c
stock_request 14.0.1.0.1
2021-04-25 17:56:53 +00:00
OCA-git-bot
61ba684578
Merge PR #1142 into 14.0
...
Signed-off-by ps-tubtim
2021-04-25 17:45:00 +00:00
Kitti U
05a8e6c550
[14.0][FIX] stock_request, window action access error
2021-04-25 18:13:10 +07:00
OCA-git-bot
37c30c3e96
[UPD] addons table in README.md
2021-04-23 10:03:47 +00:00
OCA-git-bot
395d483977
stock_available 14.0.1.0.2
2021-04-23 10:03:40 +00:00
OCA-git-bot
e6e94197e3
Merge PR #1140 into 14.0
...
Signed-off-by hparfr
2021-04-23 09:44:48 +00:00
Florian da Costa
44aea5f970
Add depends_context to quantity computed field
2021-04-22 19:47:13 +02:00
OCA-git-bot
339bec2ca0
[ADD] setup.py
2021-04-22 10:33:22 +00:00
OCA-git-bot
f250a6c4c7
[UPD] README.rst
2021-04-22 10:33:21 +00:00
OCA-git-bot
9137d713b5
[UPD] addons table in README.md
2021-04-22 10:33:19 +00:00
oca-travis
6e00084176
[UPD] Update stock_request.pot
2021-04-22 09:51:17 +00:00
OCA-git-bot
5ba879d037
Merge PR #1134 into 14.0
...
Signed-off-by ps-tubtim
2021-04-22 09:06:34 +00:00
Kitti U
493757825e
[14.0][MIG] stock_request
2021-04-19 22:23:57 +07:00
OCA-git-bot
09a378ba98
[ADD] setup.py
2021-04-19 13:32:20 +00:00
OCA-git-bot
864bc13011
[UPD] README.rst
2021-04-19 13:32:20 +00:00
OCA-git-bot
4e48f9c6da
[UPD] addons table in README.md
2021-04-19 13:32:17 +00:00
oca-travis
ba57eb0daa
[UPD] Update stock_move_common_dest.pot
2021-04-19 13:03:33 +00:00
OCA-git-bot
5cf1db4c96
Merge PR #1048 into 14.0
...
Signed-off-by hparfr
2021-04-19 12:30:09 +00:00
Kitti U
9350f93e62
[IMP] : black, isort, prettier
2021-04-19 15:52:18 +07:00
Kitti U
9ad505d702
Fix test to work with mrp installed in this repo
2021-04-19 15:50:03 +07:00
Kitti U
055bbd24e5
Ensure to set done, when qty_cancelled > 0
2021-04-19 15:50:03 +07:00
Murtuza Saleh
73c67aa3a3
[12.0][IMP] Improved _compute_qty code
2021-04-19 15:50:03 +07:00
Jaime Arroyo
34af193790
[12.0][FIX] stock_request: fix archived search view
2021-04-19 15:50:03 +07:00
Enric Tobella
0ce85a94e9
[IMP] stock_request:
...
- fixes the computation of the allocated product quantity when a stock move has multiple requests.
2021-04-19 15:50:03 +07:00
Enric Tobella
7c57244e3f
[IMP] stock_request: Improve cancellation detection
2021-04-19 15:50:03 +07:00
oca-travis
f8b93f0d07
[UPD] Update stock_request.pot
2021-04-19 15:50:03 +07:00
OCA-git-bot
835bfd237c
stock_request 13.0.1.3.1
2021-04-19 15:50:03 +07:00
oca-travis
7ddb808a50
[UPD] Update stock_request.pot
2021-04-19 15:50:03 +07:00
Carlos Lopez
51ba3d2d16
FIX: assign value to field compute always
...
on V13 fields compute must be assign value for avoid cache errors
2021-04-19 15:50:03 +07:00