Commit Graph

731 Commits

Author SHA1 Message Date
hveficent
0e944b3ce7 [FIX] stock_request_*: add expected_date implicit on tests to avoid errors 2021-08-17 12:59:07 -05:00
mreficent
4c55085db3 [FIX] Dependencies 2021-08-17 12:59:07 -05:00
OCA-git-bot
5413738248 [UPD] README.rst 2021-08-17 12:59:07 -05:00
OCA Transbot
e525de49b5 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_request_purchase
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_purchase/
2021-08-17 12:59:07 -05:00
OCA-git-bot
5249288203 stock_request_purchase 12.0.1.1.0 2021-08-17 12:59:06 -05:00
Enric Tobella
5697f8cf70 [FIX] stock_request_purchase: remove sudo 2021-08-17 12:59:06 -05:00
OCA-git-bot
3dc0840932 [UPD] README.rst 2021-08-17 12:59:06 -05:00
oca-travis
878bd92211 [UPD] Update stock_request_purchase.pot 2021-08-17 12:59:06 -05:00
Kitti U
2cc808bc71 [12.0][MIG] stock_request_purchase 2021-08-17 12:59:06 -05:00
Enric Tobella
eb83f1b554 Translated using Weblate (Spanish)
Currently translated at 100,0% (13 of 13 strings)

Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_request_purchase
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_request_purchase/es/
2021-08-17 12:59:06 -05:00
oca-travis
7069f06496 [UPD] Update stock_request_purchase.pot 2021-08-17 12:59:06 -05:00
Enric Tobella
423dc3f5ad [IMP] simplify queries 2021-08-17 12:59:06 -05:00
Jordi Ballester Alomar
3dd7312169 various fixes 2021-08-17 12:59:06 -05:00
mreficent
f7fa6050d3 [FIX] Various fixes:
- Error with the sequence number.
- Visible texts that should be in uppercases.
- order_id should only be visible if group_stock_request_order
  option is enabled.
- adds more tests
- adds consistency between models company-wise
2021-08-17 12:59:06 -05:00
Enric Tobella
c5b320146d [IMP] stock_request_purchase: Add Stock request orders. Change logo 2021-08-17 12:59:06 -05:00
mreficent
e8cd399c02 [IMP] stock_request_purchase: Remove hook 2021-08-17 12:59:06 -05:00
OCA Transbot
f2a2531ce6 OCA Transbot updated translations from Transifex 2021-08-17 12:59:06 -05:00
Jordi Ballester
92fd123b59 add stock_request in 11.0 2021-08-17 12:59:06 -05:00
OCA Transbot
5fad77ce43 OCA Transbot updated translations from Transifex 2021-08-17 12:59:06 -05:00
OCA-git-bot
d7250dacd1 [UPD] addons table in README.md 2021-08-14 05:04:00 +00:00
OCA-git-bot
6c0a9b8714 [ADD] setup.py 2021-08-12 16:14:42 +00:00
OCA-git-bot
95bc7e54ac [UPD] README.rst 2021-08-12 16:14:41 +00:00
OCA-git-bot
ebc3d61d4d [UPD] addons table in README.md 2021-08-12 16:14:38 +00:00
oca-travis
96290e50d3 [UPD] Update stock_putaway_method.pot 2021-08-12 15:29:51 +00:00
OCA-git-bot
6f94c0062b Merge PR #1193 into 14.0
Signed-off-by max3903
2021-08-12 15:10:12 +00:00
OCA-git-bot
d86fe3b1be [ADD] setup.py 2021-08-12 06:25:29 +00:00
OCA-git-bot
853dca832e [UPD] README.rst 2021-08-12 06:25:29 +00:00
OCA-git-bot
7517b6bf7d [UPD] addons table in README.md 2021-08-12 06:25:26 +00:00
oca-travis
d1b2317f22 [UPD] Update stock_reserve_rule.pot 2021-08-12 06:10:40 +00:00
OCA-git-bot
af55c55c2c Merge PR #1212 into 14.0
Signed-off-by simahawk
2021-08-12 06:05:51 +00:00
Sébastien Alix
02ea087509 [MIG] stock_reserve_rule: Migration to 14.0 2021-08-11 16:13:01 +02:00
Sébastien Alix
46c12c8080 [IMP] stock_reserve_rule: black, isort, prettier 2021-08-11 11:56:51 +02:00
Juan Carreras
2ffe854dd5 [FIX]stock_reserve_rule: fix rule because multicompany scheme change 2021-08-11 11:55:48 +02:00
OCA-git-bot
2a1e2bc070 stock_reserve_rule 13.0.1.3.0 2021-08-11 11:55:48 +02:00
oca-travis
744164f9a9 [UPD] Update stock_reserve_rule.pot 2021-08-11 11:55:48 +02:00
Guewen Baconnier
630ebc609f stock_reserve_rule: add dependency on stock_helper
To remove the duplicate implementation of
StockLocation.is_sublocation_of()
2021-08-11 11:55:48 +02:00
OCA-git-bot
cc5d86da6d stock_reserve_rule 13.0.1.2.1 2021-08-11 11:55:48 +02:00
Guewen Baconnier
08d4273737 Modify packaging rule to always respect fifo, lifo, ...
The former implementation was to take as much as possible of the largest
packaging, to the smallest packacking, to have less to move.
Then, only, removal order (fifo, ...) was applied for equal quantities.
It is more important to respect removal order than limiting the
operations, so remove this "optimization".
2021-08-11 11:55:48 +02:00
Guewen Baconnier
d8274ce196 Modify empty bin rule to always respect fifo, lifo, ...
The former implementation was sorting the quants per location and trying
to take as much quantities as possible from the same locations, to limit
the number of operations to do. Then, only, removal order (fifo, ...)
was applied. It is more important to respect removal order than limiting
the operations, so remove this "optimization".
2021-08-11 11:55:48 +02:00
OCA-git-bot
9033d2b2dd stock_reserve_rule 13.0.1.2.0 2021-08-11 11:55:48 +02:00
oca-travis
b2246010c9 [UPD] Update stock_reserve_rule.pot 2021-08-11 11:55:48 +02:00
Guewen Baconnier
df56837fdd Change picking type to many2many in reserve rules 2021-08-11 11:55:48 +02:00
OCA-git-bot
0c2ebbaffd [UPD] README.rst 2021-08-11 11:55:48 +02:00
Guewen Baconnier
d962ccbf23 Fix test incompatibility with stock_reserve_rule
The rules created in demo data of stock_reserve_rule make the tests of
stock_vertical_lift (and possibly other modules) fail because the
transfers can't be made available.

Deactivate the rule in stock_reserve_rule and activate it only in its
tests. Users can still activate the rule manually to test.
2021-08-11 11:55:48 +02:00
OCA-git-bot
d1279f28bf [ADD] icon.png 2021-08-11 11:55:48 +02:00
OCA-git-bot
995b2490e7 [UPD] README.rst 2021-08-11 11:55:48 +02:00
oca-travis
747accc5d4 [UPD] Update stock_reserve_rule.pot 2021-08-11 11:55:48 +02:00
Guewen Baconnier
0e00a55177 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).
2021-08-11 11:55:48 +02:00
Guewen Baconnier
2b2194afd1 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"
2021-08-11 11:55:48 +02:00
Guewen Baconnier
fe203b87ba 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.
2021-08-11 11:55:48 +02:00