Commit Graph

806 Commits

Author SHA1 Message Date
mreficent
a6d6000501 [ADD] Adding tests 2020-06-02 13:03:33 +02:00
lreficent
e9b48629ee [ADD] stock_cycle_count 2020-06-02 13:03:33 +02:00
OCA-git-bot
0e9ee31d26 [ADD] setup.py 2020-05-29 13:52:42 +00:00
OCA-git-bot
ee87c819ff [ADD] icon.png 2020-05-29 13:52:41 +00:00
OCA-git-bot
307ab1328b [UPD] README.rst 2020-05-29 13:52:41 +00:00
oca-travis
f89c880b32 [UPD] Update stock_reserve_rule.pot 2020-05-29 13:28:01 +00:00
OCA-git-bot
0b05d6c968 Merge PR #790 into 13.0
Signed-off-by jgrandguillaume
2020-05-29 13:15:48 +00:00
OCA-git-bot
634a392d6f [ADD] setup.py 2020-05-28 21:08:35 +00:00
OCA-git-bot
319ec16ec7 [ADD] icon.png 2020-05-28 21:08:35 +00:00
OCA-git-bot
489a5d4a67 [UPD] README.rst 2020-05-28 21:08:35 +00:00
oca-travis
8705d298b8 [UPD] Update stock_location_bin_name.pot 2020-05-28 20:14:14 +00:00
OCA-git-bot
2d2efb0235 Merge PR #806 into 13.0
Signed-off-by jgrandguillaume
2020-05-28 19:35:07 +00:00
Guewen Baconnier
bf3e5867dc Remove implicit fallback when rules are used
When rules are configured and have been applied, we should not
have an implicit fallback on the base location, as it would kind
of cancel the benefits of the rules (as it would then take whatever
it wants anywhere in all the locations).
2020-05-28 07:59:43 +02:00
Guewen Baconnier
ffef9da690 Revert "Optimize SQL queries when searching a rule"
This reverts commit 768f186fd2.

Which is not more optimized, the optimization based on parent_path
doesn't make sense here as the ORM will read parent_path in the location
and get the parent ids by splitting the ids, it doesn't need more than
one query on stock_location which is done based on its id and can reuse
the cache, there is no lookup on parent path for parent_of.

>>> env["stock.reserve.rule"].search([("location_id", "parent_of", 3125)])
2020-05-27 05:36:59,938 1 DEBUG log_p odoo.sql_db: query: SELECT "stock_location"."id" as "id","stock_location"."name" as "name","stock_location"."complete_name" as "complete_name","stock_location"."active" as "active","stock_location"."usage" as "usage","stock_location"."location_id" as "location_id","stock_location"."comment" as "comment","stock_location"."parent_path" as "parent_path", <stripped>,"stock_location"."create_uid" as "create_uid","stock_location"."create_date" as "create_date","stock_location"."write_uid" as "write_uid","stock_location"."write_date" as "write_date" FROM "stock_location" WHERE "stock_location".id IN (3125)
2020-05-27 05:36:59,942 1 DEBUG log_p odoo.sql_db: query: SELECT "stock_reserve_rule".id FROM "stock_reserve_rule" WHERE (("stock_reserve_rule"."active" = true)  AND  ("stock_reserve_rule"."location_id" in (1,7,8,133,134,135,144,207,3125))) ORDER BY "stock_reserve_rule"."sequence" ,"stock_reserve_rule"."id"
2020-05-27 07:42:37 +02:00
Guewen Baconnier
0e1487aa49 Remove logger that makes the tests failing
As the logger outputs an error log during tests, travis counts it as a
failure of a test.
2020-05-26 08:52:11 +02:00
Guewen Baconnier
3d977e92e2 Add explicit filter on picking type 2020-05-25 08:30:02 +02:00
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