Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] stock_lock_lot: Migration to 17.0 #1686

Merged
merged 38 commits into from
Jan 8, 2025

Conversation

arantxa-s73
Copy link

No description provided.

Lionel Sausin and others added 30 commits August 30, 2024 08:49
In the web client, if you type a new lot name and select "create" from the pop-up menu, the client calls the `create()` method with only the name attribute. All the other fields must be passed in the context.
As a consequence, stock_lock_lot silently failed to block the lots because it didn't find the product.
Fix it by looking for a product id in both the create values and the context.
* Log the reason when a lot is automatically locked

  This is useful whe custom submodules can lock lots for other reasons.

  Additional changes : fix the default value for the blocked checkbox (no big deal, it was overwritten anyway) ; migrate create to api v8 ; use AccessError when permissions are wrong.

* Unreserve quants when blocking lots

  Users block lots when there is a problem with it (eg. quality issue), and it's important that no delivery is made when such a problem is found. So blocking is more important than reservations.
  So, ask for user confirmation when blocking, and then break the reservations.
  Includes translation into French
… on blocked Serial Numbers/lots." is set as True every time the DB is updated
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_lock_lot/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_lock_lot/
Currently translated at 50.0% (8 of 16 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
Currently translated at 100.0% (16 of 16 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/
Currently translated at 47.5% (19 of 40 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
oca-ci and others added 7 commits August 30, 2024 08:49
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/
Currently translated at 48.7% (19 of 39 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
Currently translated at 51.2% (20 of 39 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
Currently translated at 28.2% (11 of 39 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/ca/
Currently translated at 100.0% (39 of 39 strings)

Translation: stock-logistics-workflow-14.0/stock-logistics-workflow-14.0-stock_lock_lot
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-stock_lock_lot/it/
@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_lock_lot branch from baf19bb to cac7c72 Compare August 30, 2024 07:42
@rousseldenis
Copy link
Contributor

/ocabot migration stock_lock_lot

stock_lock_lot/models/stock_move_line.py Outdated Show resolved Hide resolved
stock_lock_lot/models/stock_location.py Outdated Show resolved Hide resolved
stock_lock_lot/models/stock_lot.py Outdated Show resolved Hide resolved
stock_lock_lot/models/product_category.py Show resolved Hide resolved
stock_lock_lot/readme/DESCRIPTION.md Show resolved Hide resolved
@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_lock_lot branch from cac7c72 to aa76179 Compare January 7, 2025 16:17
@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_lock_lot branch from aa76179 to b1304f6 Compare January 8, 2025 07:06
@arantxa-s73 arantxa-s73 force-pushed the 17.0-mig-stock_lock_lot branch from b1304f6 to 6ffb98e Compare January 8, 2025 07:07
@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-1686-by-rousseldenis-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 720d3d6 into OCA:17.0 Jan 8, 2025
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 32396f1. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.