Skip to content

Conversation

@mmequignon
Copy link
Member

When computing availability status, cancelled moves should be ignored.

ping @jbaudoux

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

better but still doesn't look right

@mmequignon mmequignon force-pushed the 18.0-fix_availability_status branch from b4348a7 to deb007b Compare October 13, 2025 15:07
available_qty += product.uom_id._compute_quantity(
move.quantity, move.product_uom, rounding_method="HALF-UP"
)
available_qty = self.product_uom._compute_quantity(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you refactor a bit to not convert twice?

@mmequignon mmequignon force-pushed the 18.0-fix_availability_status branch from deb007b to 86194a8 Compare December 19, 2025 10:14
@mmequignon
Copy link
Member Author

@jbaudoux addressed your comment, can you please make another pass ?

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

The SO line uom should be the to_unit and not the from unit isn't it?

continue
if move.need_release:
available_qty += self.product_uom._compute_quantity(
move.ordered_available_to_promise_uom_qty,
Copy link
Contributor

@jbaudoux jbaudoux Dec 19, 2025

Choose a reason for hiding this comment

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

promise_qty instead of promise_uom_qty

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants