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
2020-03-14 12:28:39 +01:00
2020-03-17 10:39:10 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 11:28:56 +00:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2019-10-12 12:30:40 +02:00
2019-09-29 23:49:04 +02:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2020-03-14 12:28:39 +01:00
2019-10-12 12:30:40 +02:00
2020-03-14 12:28:39 +01:00
2019-10-12 12:30:40 +02:00
2019-10-12 12:30:40 +02:00

Build Status Coverage Status

Odoo Stock Logistics Warehouse

This project aim to deal with modules related to the management of warehouses. You'll find modules that:

  • Ease inventory by adding various possibilities
  • Move all product from one location to another
  • Manage the product catalog (merge them,..)

Please don't hesitate to suggest one of your module to this project. Also, you may want to have a look on those other projects here:

Description
Odoo Warehouse Management Addons
Readme 142 MiB
Languages
HTML 50.9%
Python 48.2%
JavaScript 0.8%
SCSS 0.1%