Skip to content

Conversation

@em230418
Copy link

@em230418 em230418 commented Feb 4, 2025

No description provided.

alan196 and others added 17 commits February 4, 2025 16:41
Currently translated at 100.0% (19 of 19 strings)

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

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/
Currently translated at 100.0% (20 of 20 strings)

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/es/
Currently translated at 100.0% (20 of 20 strings)

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/it/
Currently translated at 100.0% (20 of 20 strings)

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/it/
Currently translated at 100.0% (20 of 20 strings)

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/it/
Currently translated at 100.0% (20 of 20 strings)

Translation: stock-logistics-workflow-15.0/stock-logistics-workflow-15.0-stock_scrap_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_scrap_tier_validation/it/
@em230418 em230418 marked this pull request as ready for review February 4, 2025 12:01
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is one of the issues I solved in the earlier migration to 17.0: create a tier definition for stock.scrap. Go to a delivery transfer. Click the Scrap button. You get this error:
image

It is because the 'secondary' stock scrap popup view does not have the tier validation fields. This is solved in 9abffe9#diff-635ed623ad5aeed8a01ed21e71441fd81a5697bec804f2581bf843ecfea40d94. I really think you will want to take the rest of that commit as well, to prevent the other issue from showing up (the other issue being: the popup is only saved upon confirmation, but the confirmation is blocked because of the validation, resulting in a deadlock).

@em230418 em230418 force-pushed the 16.0-mig2-stock_scrap_tier_validation branch from e0ecee7 to 20b4b25 Compare February 5, 2025 09:16
@em230418 em230418 marked this pull request as draft February 5, 2025 09:27
…error when pressing scrap from picking

Co-authored-by: Eugene Molotov <[email protected]>
@em230418 em230418 force-pushed the 16.0-mig2-stock_scrap_tier_validation branch from 20b4b25 to 61c2ddc Compare February 5, 2025 09:52
@em230418 em230418 marked this pull request as ready for review February 5, 2025 09:57
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scrapping from stock picking now works, but you did not take the *_mrp glue module from my commit so predictably, scrapping from an mrp.production form still halts on the deadlock described above if validation is required.
image

@em230418
Copy link
Author

em230418 commented Feb 5, 2025

Cherry-picked [ADD] stock_scrap_tier_validation_mrp from 17.0
Did not check if it works fine

@rousseldenis
Copy link
Contributor

/ocabot migration stock_scrap_tier_validation

@StefanRijnhart
Copy link
Member

Did not check if it works fine

@em230418 That's quite a confession. I really wouldn't like running into issues testing a third time on this PR. Are you sure you don't want to have a go first?

@SecretAgentNull
Copy link

I have checked the "stock_scrap_tier_validation_mrp" and can confirm that it works without any issues.

I created a scrap record in the manufacturing order, requested validation, and successfully validated it without any errors. The screenshots are attached.

Screenshot_20250216_194901
Screenshot_20250216_194909
Screenshot_20250216_194925

_tier_validation_manual_config = False

def _get_requested_notification_subtype(self):
return "stock_scrap_tier_validation.sale_order_tier_validation_requested"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mail Subtypes seems wrong, could you cherry pick this commit?
b3d9677

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting until this is resolved #1894

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rereview #1894 and pick if you agree with the current version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 21, 2025
@github-actions github-actions bot closed this Oct 26, 2025
@StefanRijnhart StefanRijnhart added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

migration needs review no stale Use this label to prevent the automated stale action from closing this PR/Issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants