Commit Graph

1350 Commits

Author SHA1 Message Date
Matjaz Mozetic
760ff15a67 Translated using Weblate (Slovenian)
Currently translated at 58.3% (35 of 60 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_verification_request
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_verification_request/sl/
2020-08-11 10:59:55 +00:00
Matjaz Mozetic
3178b8dcb6 Translated using Weblate (Slovenian)
Currently translated at 37.5% (3 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/sl/
2020-08-11 10:59:55 +00:00
Matjaz Mozetic
8426ab8bab Translated using Weblate (Slovenian)
Currently translated at 29.2% (7 of 24 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_discrepancy
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_discrepancy/sl/
2020-08-11 10:59:55 +00:00
Matjaz Mozetic
9b227106de Translated using Weblate (Slovenian)
Currently translated at 60.0% (3 of 5 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_lockdown
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_lockdown/sl/
2020-08-11 10:59:54 +00:00
Matjaz Mozetic
f65d28d494 Translated using Weblate (Slovenian)
Currently translated at 100.0% (2 of 2 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_exclude_sublocation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_exclude_sublocation/sl/
2020-08-11 10:59:54 +00:00
Matjaz Mozetic
6a14bdcd8d Translated using Weblate (Slovenian)
Currently translated at 55.6% (10 of 18 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_mts_mto_rule/sl/
2020-08-11 10:59:54 +00:00
Matjaz Mozetic
7d870e0c8c Translated using Weblate (Slovenian)
Currently translated at 100.0% (21 of 21 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_preparation_filter
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_preparation_filter/sl/
2020-08-11 10:59:54 +00:00
Matjaz Mozetic
aa517e2448 Translated using Weblate (Slovenian)
Currently translated at 76.9% (20 of 26 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_change_qty_reason
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_change_qty_reason/sl/
2020-08-11 10:59:54 +00:00
Matjaz Mozetic
279cab36dd Translated using Weblate (Slovenian)
Currently translated at 47.1% (16 of 34 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_demand_estimate
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_demand_estimate/sl/
2020-08-11 10:59:53 +00:00
Matjaz Mozetic
0123e14d18 Translated using Weblate (Slovenian)
Currently translated at 100.0% (13 of 13 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_unreserved
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_unreserved/sl/
2020-08-11 10:59:53 +00:00
Matjaz Mozetic
1bc1614b3b Translated using Weblate (Slovenian)
Currently translated at 27.4% (46 of 168 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_request
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request/sl/
2020-08-11 10:59:53 +00:00
Matjaz Mozetic
41cb09e0d7 Translated using Weblate (Slovenian)
Currently translated at 83.3% (5 of 6 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_orderpoint_uom
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_orderpoint_uom/sl/
2020-08-11 10:59:52 +00:00
Matjaz Mozetic
a570982a85 Translated using Weblate (Slovenian)
Currently translated at 37.5% (6 of 16 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_chatter
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_chatter/sl/
2020-08-11 10:59:52 +00:00
Matjaz Mozetic
dd8f7922e1 Translated using Weblate (Slovenian)
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-account_move_line_stock_info
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-account_move_line_stock_info/sl/
2020-08-11 10:59:52 +00:00
Matjaz Mozetic
46b49c3687 Added translation using Weblate (Slovenian) 2020-08-11 08:12:20 +00:00
Matjaz Mozetic
6e85e589e1 Added translation using Weblate (Slovenian) 2020-08-11 08:09:59 +00:00
OCA Transbot
293c09c66f 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-sale_stock_info_popup
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-sale_stock_info_popup/
2020-07-27 16:20:29 +00:00
OCA-git-bot
97122f0c84 sale_stock_info_popup 12.0.1.0.2 2020-07-27 16:20:03 +00:00
oca-travis
2698369124 [UPD] Update sale_stock_info_popup.pot 2020-07-27 15:35:02 +00:00
OCA-git-bot
2671d26edb Merge PR #948 into 12.0
Signed-off-by pedrobaeza
2020-07-27 15:08:01 +00:00
Ernesto Tejeda
8113ed4343 [FIX] sale_stock_info_popup: pass 'warehouse' and 'scheduled date' by context 2020-07-27 10:43:33 -04:00
OCA-git-bot
31b3b01918 [ADD] setup.py 2020-07-25 07:42:29 +00:00
OCA-git-bot
3975db8c7a [UPD] README.rst 2020-07-25 07:42:29 +00:00
oca-travis
d67ea87d1c [UPD] Update stock_reserve_rule.pot 2020-07-25 07:00:54 +00:00
OCA-git-bot
0a036babf7 Merge PR #938 into 12.0
Signed-off-by JordiBForgeFlow
2020-07-25 06:43:56 +00:00
OCA-git-bot
1b99507da7 [ADD] setup.py 2020-07-20 12:27:27 +00:00
OCA-git-bot
14a41f3649 [ADD] icon.png 2020-07-20 12:27:27 +00:00
OCA-git-bot
b57a816784 [UPD] README.rst 2020-07-20 12:27:26 +00:00
oca-travis
62b56ccc67 [UPD] Update stock_picking_type_user_restriction.pot 2020-07-20 11:20:49 +00:00
OCA-git-bot
c696409cda Merge PR #934 into 12.0
Signed-off-by simahawk
2020-07-20 11:05:36 +00:00
Guewen Baconnier
cf409a7892 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.
2020-07-20 11:20:29 +02:00
Adrià Gil Sorribes
338d9179ce [12.0][MIG] stock_reserve_rule 2020-07-20 11:20:29 +02:00
OCA-git-bot
0734d52c60 [ADD] icon.png 2020-07-20 11:20:29 +02:00
OCA-git-bot
571f0f6f0e [UPD] README.rst 2020-07-20 11:20:29 +02:00
oca-travis
594cea0d15 [UPD] Update stock_reserve_rule.pot 2020-07-20 11:20:29 +02:00
Guewen Baconnier
bfff86f57d 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-07-20 11:20:29 +02:00
Guewen Baconnier
e539a05ac1 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-07-20 11:20:29 +02:00
Guewen Baconnier
3d49f527ae 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-07-20 11:20:29 +02:00
Guewen Baconnier
6ae07178c0 Add explicit filter on picking type 2020-07-20 11:20:29 +02:00
Guewen Baconnier
d674ad988f Improve usability 2020-07-20 11:20:29 +02:00
Guewen Baconnier
2f6d52c3b2 Use optimized method to check if location is child 2020-07-20 11:20:29 +02:00
Guewen Baconnier
3d975b638e 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-07-20 11:20:29 +02:00
Guewen Baconnier
a556a743f3 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-07-20 11:20:29 +02:00
Guewen Baconnier
6ba757506f 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-07-20 11:20:29 +02:00
Guewen Baconnier
dbd44e3c94 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-07-20 11:20:29 +02:00
sebalix
a1d6bfd9d8 [IMP] stock_reserve_rule: add constraints on fallback locations 2020-07-20 11:20:29 +02:00
Guewen Baconnier
a1f3d787ce Run pre-commit with xml prettier 2020-07-20 11:20:29 +02:00
Guewen Baconnier
86e12f32b8 Migrate stock_reserve_rule to 13.0 2020-07-20 11:20:29 +02:00
Guewen Baconnier
892818a764 Add stock_reserve_rule 2020-07-20 11:20:29 +02:00
Lorenzo Battistini
db5e69cc8d never create users in tests w/out no_reset_password (it generates emails for pwd!) and when possible use tracking_disable and SavepointCase
Co-authored-by: Simone Orsi <simahawk@users.noreply.github.com>
2020-07-20 10:02:29 +02:00