Commit Graph

890 Commits

Author SHA1 Message Date
Guewen Baconnier
6c8c6c9fd9 Improve usability 2020-05-25 08:28:40 +02:00
Guewen Baconnier
2e5daf1130 Use optimized method to check if location is child 2020-05-20 15:31:18 +02:00
Guewen Baconnier
55bbc44a62 Remove fallback location
It could not work properly here as we need the "fallback" to apply
even if there is no quantity at all in the stock. As we hook the
reservation rules in StockMove._update_reserved_quantity(), and
this method is called only if we have at least 1 product in qty,
the fallback was not applied with zero qty.

A new module will handle this concept: https://github.com/OCA/wms/pull/28
2020-05-20 15:31:18 +02:00
OCA Transbot
bb45eaf2af 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_request
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request/
2020-05-18 08:12:59 +00:00
OCA-git-bot
a7d93ebdb3 stock_request 13.0.1.2.0 2020-05-18 08:12:38 +00:00
oca-travis
e66ac70492 [UPD] Update stock_request.pot 2020-05-18 07:48:45 +00:00
OCA-git-bot
926875514f Merge PR #903 into 13.0
Signed-off-by rousseldenis
2020-05-18 07:36:59 +00:00
Guewen Baconnier
768f186fd2 Optimize SQL queries when searching a rule
Searching all rules then filtering in python the parent path is
more efficient than finding all the parent locations and finding
the matching rules.
2020-05-15 12:16:32 +02:00
Guewen Baconnier
89e4ea230f Fix application of removal rules too broad
Example of configuration:

Rule location: Stock
Removal rule 1: Stock/Zone1
Removal rule 2: Stock/Zone2

Reservation of a stock move with Stock/Zone2 as source location.

Previously, it would reserve in Stock/Zone1.
Now, it will never be allowed to reserve in Stock/Zone1.

A warning message was added previously to warn the user about potential
issues, which is now obsolete so I removed it.
2020-05-15 08:03:12 +02:00
Guewen Baconnier
c99c97ffa4 Fix bug in fallback when no quantity could be reserved
Before the change, the implementation of the fallback goes like this:

If I reserve a move of 3000 and it finds 600 units, it splits the move
to create a new move of 2400 and pretend to the caller that 3000 was
reserved so the initial move is changed to 'assigned'.

Now, if we have a move of 2400 and finds zero, it still splits the move,
and pretend to the caller that 2400 was reserved → the initial move has
no move line but is assigned. In this case, we should not split the move
but only update the source location of the move.
2020-05-14 16:08:21 +02:00
OCA-git-bot
09765f9b99 [UPD] pin flake8 version [ci skip] 2020-05-13 14:11:12 +02:00
Jaime Arroyo
7817616d60 [IMP] stock_request: Views 2020-05-12 17:25:25 +02:00
OCA-git-bot
fc44012e2e stock_inventory_lockdown 13.0.1.0.1 2020-05-12 15:24:19 +00:00
OCA-git-bot
8aa79b46f1 Merge PR #902 into 13.0
Signed-off-by LoisRForgeFlow
2020-05-12 14:26:32 +00:00
HviorForgeFlow
0f800112f3 [13.0][FIX] Broken pre-commit: E741 ambiguous variable name 'l' 2020-05-12 16:19:47 +02:00
OCA Transbot
19933979b2 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_inventory_include_exhausted
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_inventory_include_exhausted/
2020-04-30 12:39:08 +00:00
OCA-git-bot
ad7bc76331 stock_demand_estimate 13.0.1.1.0 2020-04-30 12:38:47 +00:00
OCA-git-bot
49d1471b0e Merge PR #890 into 13.0
Signed-off-by LoisRForgeFlow
2020-04-30 11:37:59 +00:00
Jordi Ballester Alomar
8a37da26bf [13.0] stock_demand_estimate: fix multicompany security 2020-04-30 13:37:09 +02:00
sebalix
4e4d2d7130 [IMP] stock_reserve_rule: add constraints on fallback locations 2020-04-30 10:18:45 +02:00
OCA-git-bot
d206a9ad55 stock_inventory_include_exhausted 13.0.1.0.1 2020-04-24 12:15:46 +00:00
OCA-git-bot
50d58cc402 [ADD] setup.py 2020-04-24 12:15:46 +00:00
OCA-git-bot
f1107d3e12 [UPD] README.rst 2020-04-24 12:15:45 +00:00
oca-travis
3567ce02a7 [UPD] Update stock_inventory_include_exhausted.pot 2020-04-24 11:51:39 +00:00
OCA-git-bot
2c1a8aadef Merge PR #849 into 13.0
Signed-off-by rousseldenis
2020-04-24 11:39:44 +00:00
Carlos Roca
deb934c62f [ADD] stock_inventory_include_exhausted: New module to create inventory lines including exhausted products 2020-04-24 12:54:33 +02:00
OCA-git-bot
65c787dc24 [ADD] setup.py 2020-04-07 15:00:28 +00:00
OCA-git-bot
423a4e38fc [ADD] icon.png 2020-04-07 15:00:28 +00:00
oca-travis
205cf421b5 [UPD] Update stock_move_common_dest.pot 2020-04-07 14:11:14 +00:00
OCA-git-bot
cb028cf027 Merge PR #861 into 13.0
Signed-off-by rousseldenis
2020-04-07 13:49:31 +00:00
Akim Juillerat
09ce022708 Add module stock_move_common_dest 2020-04-07 13:22:04 +02:00
Dong
b5dda6b2a2 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (19 of 19 strings)

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_request_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request_tier_validation/zh_CN/
2020-04-02 14:19:04 +00:00
OCA-git-bot
1cfe9f1467 [UPD] README.rst 2020-04-01 20:55:00 +00:00
oca-travis
8480a504ec [UPD] Update scrap_reason_code.pot 2020-04-01 20:30:12 +00:00
OCA-git-bot
1e6c3c13f9 Merge PR #875 into 13.0
Signed-off-by dreispt
2020-04-01 20:17:31 +00:00
Bhavesh Odedra
e0e9107e85 [ADD] migration script, change model name from reason.code to scrap.reason.code 2020-04-01 13:54:46 +05:30
OCA-git-bot
a1dc6323d5 [ADD] setup.py 2020-03-31 10:15:30 +00:00
oca-travis
f191928330 [UPD] Update stock_request_tier_validation.pot 2020-03-31 09:51:56 +00:00
OCA-git-bot
ff084036ef Merge PR #868 into 13.0
Signed-off-by LoisRForgeFlow
2020-03-31 09:22:39 +00:00
ps-tubtim
464103d6d5 [MIG] stock_request_tier_validation: Migration to 13.0 2020-03-30 18:58:16 +07:00
ps-tubtim
6692e1299d [IMP] stock_request_tier_validation: black, isort 2020-03-30 18:52:08 +07:00
Guewen Baconnier
3939415470 run pre-commit with new prettiers 2020-03-30 12:59:42 +02:00
Guewen Baconnier
284633cfd2 [MIG] stock_location_bin_name: Migration to 13.0 2020-03-30 12:59:42 +02:00
Guewen Baconnier
8ed44d013f [IMP] stock_location_bin_name: black, isort 2020-03-30 12:59:42 +02:00
Guewen Baconnier
7f8102ad03 Change the area field as a related field
It is not stored because we only need it for the generation of the name.
It slows creation of locations for no value.
If we need to search on it, we can use a search method.
2020-03-30 12:59:42 +02:00
Akim Juillerat
0b141fddda 12.0 Add stock_location_bin_name (split from stock_location_zone) 2020-03-30 12:59:42 +02:00
hveficent
8854abb3e7 [12.0][FIX] stock_request_tier_validation: SRO tier validation reviews 2020-03-30 17:39:53 +07:00
黎伟杰
e581002480 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (19 of 19 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_request_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_tier_validation/zh_CN/
2020-03-30 17:39:53 +07:00
黎伟杰
7b11c88e8b Added translation using Weblate (Chinese (Simplified)) 2020-03-30 17:39:53 +07:00
OCA-git-bot
2ddd54f3d2 [UPD] README.rst 2020-03-30 17:39:53 +07:00