Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Nov 28, 2025

Steps to reproduce:

  • Storable product with fifo valuation & standard price of $1
  • Do an inventory adjustment with 1.9 qty
  • Go to Inventory > Reporting > Stock and click on the total value

Issue:
Remaning quantity is 1 and remaining value is $1.00

A cast to int() on the qty_available was done so it would be used as a limit for a search. However, this meant that the decimal part of the quantity would be dropped.

After further analysis, we changed the over-engineered limit to always be 100, as by nature that value is completely arbitrary anyway.

opw-5230435


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #237802

Steps to reproduce:
- Storable product with fifo valuation & standard price of $1
- Do an inventory adjustment with 1.9 qty
- Go to Inventory > Reporting > Stock and click on the total value

Issue:
Remaning quantity is 1 and remaining value is $1.00

A cast to int() on the `qty_available` was done so it would be used as a
`limit` for a search. However, this meant that the decimal part of the
quantity would be dropped.

After further analysis, we changed the over-engineered limit to always
be 100, as by nature that value is completely arbitrary anyway.

opw-5230435

co-authored by: Robert Smith (rosm) <rosm@odoo.com>

X-original-commit: f93859f
@robodoo
Copy link
Contributor

robodoo commented Nov 28, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Nov 28, 2025

@clesgow @amoyaux this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Nov 28, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Nov 28, 2025

@clesgow @amoyaux ci/runbot failed on this forward-port PR

@clesgow
Copy link
Contributor

clesgow commented Dec 1, 2025

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 1, 2025
Steps to reproduce:
- Storable product with fifo valuation & standard price of $1
- Do an inventory adjustment with 1.9 qty
- Go to Inventory > Reporting > Stock and click on the total value

Issue:
Remaning quantity is 1 and remaining value is $1.00

A cast to int() on the `qty_available` was done so it would be used as a
`limit` for a search. However, this meant that the decimal part of the
quantity would be dropped.

After further analysis, we changed the over-engineered limit to always
be 100, as by nature that value is completely arbitrary anyway.

opw-5230435

co-authored by: Robert Smith (rosm) <rosm@odoo.com>

closes #238002

X-original-commit: f93859f
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
@robodoo robodoo added the 19.1 label Dec 1, 2025
@robodoo robodoo closed this Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

19.1 forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants