ougc27
1697f7b719
[MIG] stock_available_unreserved: Migration to V12
2019-12-20 14:04:31 +01:00
Osoul
031cbb2abe
Added translation using Weblate (Arabic)
2019-12-20 14:04:31 +01:00
oca-travis
49ebf6b62b
[UPD] Update stock_available_unreserved.pot
2019-12-20 12:34:12 +01:00
Atte Isopuro
9858cd5d4b
stock_available_unreserved: allow searching by unreserved quantities
2019-12-20 12:34:12 +01:00
Guewen Baconnier
30a14dab0f
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.
2019-12-20 12:34:12 +01:00
mpanarin
07e173114f
[MIG] stock_available_unreserved: migrate Odoo 11
2019-12-20 12:34:12 +01:00
Denis Roussel
b8afda67f7
[FIX] stock_available: Some affectations
2019-12-20 12:34:12 +01:00
Laurent Mignon (ACSONE)
08dc76405e
[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
2019-12-20 12:34:12 +01:00
Cédric Pigeon
b39846cc5a
[CHG] optimize stock computation by avoiding to call useless compute
2019-12-20 12:34:12 +01:00
mreficent
36b64e4b85
[IMP] fast compute
...
_product_available() method is computed only once by location
2019-12-20 12:34:12 +01:00
Stefan Rijnhart
d79518b979
[MIG] stock_available_unreserved
2019-12-20 12:34:12 +01:00
OCA Transbot
ecab13d267
OCA Transbot updated translations from Transifex
2019-12-20 12:34:12 +01:00
Jordi Ballester Alomar
4443fb28e3
new module 'stock_available_unreserved' ( #206 )
...
* [ADD] new module 'stock_available_unreserved'
2019-12-20 12:34:12 +01:00
ps-tubtim
a6e508c51d
[IMP] stock_removal_location_by_priority: black, isort
...
[MIG] stock_removal_location_by_priority: Migration to 13.0
2019-12-19 09:11:57 +07:00
黎伟杰
4c56b522d9
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (8 of 8 strings)
Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_removal_location_by_priority
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_removal_location_by_priority/zh_CN/
2019-12-18 17:32:00 +07:00
黎伟杰
9342dad39a
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (8 of 8 strings)
Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_removal_location_by_priority
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_removal_location_by_priority/zh_CN/
2019-12-18 17:32:00 +07:00
Alexandre Fayolle
1190f47ded
Translated using Weblate (French)
...
Currently translated at 100.0% (8 of 8 strings)
Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_removal_location_by_priority
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_removal_location_by_priority/fr/
2019-12-18 17:32:00 +07:00
OCA-git-bot
ddecd0aa6a
[UPD] README.rst
2019-12-18 17:32:00 +07:00
OCA Transbot
87007334b2
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_removal_location_by_priority
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_removal_location_by_priority/
2019-12-18 17:32:00 +07:00
oca-travis
9dfe2bc99e
[UPD] Update stock_removal_location_by_priority.pot
2019-12-18 17:32:00 +07:00
mreficent
b4e6de4721
[MIG] stock_removal_location_by_priority: Migration to 12.0
2019-12-18 17:32:00 +07:00
OCA Transbot
0864acd8ad
Update translation files
...
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2019-12-18 17:32:00 +07:00
mreficent
bdb3a9ca77
[FIX] stock_removal_by_priority: avoid pre-init-hook if reinstalled
2019-12-18 17:32:00 +07:00
oca-travis
f0cf92754c
[UPD] Update stock_removal_location_by_priority.pot
2019-12-18 17:32:00 +07:00
OCA-git-bot
13e1a725ab
[UPD] README.rst
2019-12-18 17:32:00 +07:00
Lois Rilo
5e08e3eedf
[11.0][MIG] stock_removal_location_by_priority
2019-12-18 17:32:00 +07:00
oca-travis
2d818079aa
[UPD] Update stock_removal_location_by_priority.pot
2019-12-18 17:32:00 +07:00
mreficent
9f218109e6
[IMP/FIX] Removal priority should be independent of company
2019-12-18 17:32:00 +07:00
mreficent
83fa5752d1
[MIG] stock_removal_location_by_priority: Migration to 10.0
2019-12-18 17:32:00 +07:00
OCA Transbot
453764f452
OCA Transbot updated translations from Transifex
2019-12-18 17:32:00 +07:00
lreficent
1f7f508460
stock_removal_location_by_priority: Add init_hook to speed up installation
2019-12-18 17:32:00 +07:00
mreficent
0510ce80d2
Stock Removal Location by Priority
2019-12-18 17:32:00 +07:00
ps-tubtim
f8256740a1
[MIG] account_move_line_product: Migration to 13.0
2019-12-18 17:21:58 +07:00
OCA-git-bot
7cae74c623
[ADD] setup.py
2019-12-17 10:00:58 +00:00
OCA-git-bot
043ab23db6
[UPD] README.rst
2019-12-17 10:00:58 +00:00
oca-travis
162f6a14f9
[UPD] Update stock_warehouse_calendar.pot
2019-12-17 09:47:29 +00:00
OCA-git-bot
cbc96fe5ab
Merge PR #794 into 13.0
...
Signed-off-by LoisRForgeFlow
2019-12-17 09:40:01 +00:00
Lois Rilo
4143b6a802
[13.0][MIG] stock_warehouse_calendar
2019-12-17 10:06:09 +01:00
Lois Rilo
ec24e4c3ef
[IMP] stock_warehouse_calendar: black, isort
2019-12-17 09:32:43 +01:00
黎伟杰
a268a8e3a5
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (3 of 3 strings)
Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_warehouse_calendar
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_warehouse_calendar/zh_CN/
2019-12-17 09:31:55 +01:00
黎伟杰
d6fabd47c5
Added translation using Weblate (Chinese (Simplified))
2019-12-17 09:31:55 +01:00
OCA-git-bot
cc40b25571
stock_warehouse_calendar 12.0.1.0.1
2019-12-17 09:31:55 +01:00
OCA-git-bot
70c6fb7900
[UPD] README.rst
2019-12-17 09:31:55 +01:00
Lois Rilo
d7b91741d5
[12.0][REW] stock_warehouse_calendar: add plan days helper method
...
the method `wh_plan_days` can be used in any place where planning
or scheduling needs to be done in a given warehouse context,
considering the working days if set.
2019-12-17 09:31:55 +01:00
OCA-git-bot
7fdab7d8bb
[UPD] README.rst
2019-12-17 09:31:55 +01:00
oca-travis
88960d9a0b
[UPD] Update stock_warehouse_calendar.pot
2019-12-17 09:31:55 +01:00
OCA-git-bot
b0213a73f8
[UPD] README.rst
2019-12-17 09:31:55 +01:00
mreficent
63b70b36d3
[MIG] stock_warehouse_calendar: Migration to 12.0
2019-12-17 09:31:55 +01:00
OCA Git Bot
fa1bb0b689
[UPD] README.rst
2019-12-17 09:31:55 +01:00
Stéphane Bidoul (ACSONE)
0964a9a81c
[FIX] remove empty file that breaks readme generator
2019-12-17 09:31:55 +01:00