Skip to content

Conversation

@rousseldenis
Copy link
Contributor

No description provided.

@rousseldenis rousseldenis added this to the 16.0 milestone Oct 9, 2024
@rousseldenis rousseldenis force-pushed the 16.0-add-stock-picking-putaway-recompute-dro branch 2 times, most recently from e5ed3ee to 43043bc Compare October 10, 2024 08:26
@rousseldenis
Copy link
Contributor Author

@lmignon @jbaudoux @phschmidt

@rousseldenis rousseldenis force-pushed the 16.0-add-stock-picking-putaway-recompute-dro branch 2 times, most recently from 525e51d to 84d7ec0 Compare November 22, 2024 15:15
@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 Apr 20, 2025
@github-actions github-actions bot closed this May 25, 2025
@jbaudoux jbaudoux reopened this May 26, 2025
@jbaudoux jbaudoux 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 May 26, 2025
… packages

As soon as there is a result package for the operation, the destination location
recomputation is not authorized as all operations contained in a package should go
to the same destination.
…on location

This is more correct as the original location before applying
the putaways is the stock move destination location.
@rousseldenis rousseldenis force-pushed the 16.0-add-stock-picking-putaway-recompute-dro branch from 84d7ec0 to db3c2d9 Compare July 17, 2025 15:43
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG, minor remarks

# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.fields import Command, first

from odoo.addons.base.tests.common import BaseCommon
Copy link
Contributor

Choose a reason for hiding this comment

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

BaseCommon does too many things and it slows down setup. If you don't need company, currency, user, etc, use TransactionCase + tracking_disable or DISABLED_MAIL_CONTEXT.

Comment on lines 34 to 35
return self.filtered(
lambda line: line.picking_type_id.allow_to_recompute_putaways
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it make more sense to have the filtering function defined at line level instead of one that filters out without the ability to override?

help="Technical field in order to display the Recompute Putaways button.",
)

def action_recompute_putaways(self) -> dict:
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know much about annotations but AFAIU this function must return a dict but doesn't return anything

@grindtildeath
Copy link
Contributor

@rousseldenis I did the suggested changes here to speed up the merge of that PR: acsone#2

Can you please check and merge if that's good for you? 🙏

… dependencies

Recomputation was allowed at picking level even if it was not allowed
on the picking type.
Make sure the computation on stock.move.line reuses the conditions defined
at picking level.
@lmignon lmignon force-pushed the 16.0-add-stock-picking-putaway-recompute-dro branch from 84ab41a to 16d3568 Compare August 18, 2025 08:51
@lmignon
Copy link
Contributor

lmignon commented Aug 18, 2025

@rousseldenis I did the suggested changes here to speed up the merge of that PR: acsone#2

Can you please check and merge if that's good for you? 🙏

done 😏

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

Labels

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.

5 participants