Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Feb 7, 2025

Current behavior:
Invoicing some product at a price unit different from that at reception (with the product having manual valuation and non-standard costing) will create pdiff account move lines on the invoice.

Expected behavior:
With manual valuation, there should not be pdiff AMLs.

Steps to reproduce:

  1. Create a product with average costing and manual valuation

  2. Receive 10 units @ $100 to establish some std price

  3. Consume the 10 product qty (scrap, sale, ...)

  4. Create the invoice on the purchase order

  5. Change the price unit on the bill to $120 per product -> post

  6. In the journal items tab on the invoice, see the pdiff AMLs

Cause of the issue:
No consideration for valuation when creating the AMLs for pdiff.

Fix:
Check that valuation is not manual prior to creating the AMLs.

opw-4492217

Forward-Port-Of: #196786

@robodoo
Copy link
Contributor

robodoo commented Feb 7, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 7, 2025

This PR targets 17.0 and is part of the forward-port chain. Further PRs will be created up to master.

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 Feb 7, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 7, 2025

@ethanrobv @adwid ci/runbot failed on this forward-port PR

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Feb 7, 2025
**Current behavior:**
Invoicing some product at a price unit different from that at
reception (with the product having manual valuation and
non-standard costing) will create pdiff account move lines on
the invoice.

**Expected behavior:**
With manual valuation, there should not be pdiff AMLs.

**Steps to reproduce:**
1. Create a product with average costing and manual valuation

2. Receive 10 units @ $100 to establish some std price

3. Consume the 10 product qty (scrap, sale, ...)

4. Create the invoice on the purchase order

5. Change the price unit on the bill to $120 per product -> post

6. In the journal items tab on the invoice, see the pdiff AMLs

**Cause of the issue:**
No consideration for valuation when creating the AMLs for pdiff.

**Fix:**
Check that valuation is `real_time` prior to creating the AMLs.

opw-4492217

X-original-commit: d67ea2d
@ethanrobv ethanrobv force-pushed the 17.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-414559-fw branch from 23b4f14 to 55a882a Compare February 11, 2025 06:48
@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 11, 2025

@ethanrobv @adwid this PR was modified / updated and has become a normal PR. It must be merged directly.

@ethanrobv
Copy link

@robodoo r+

robodoo pushed a commit that referenced this pull request Feb 17, 2025
**Current behavior:**
Invoicing some product at a price unit different from that at
reception (with the product having manual valuation and
non-standard costing) will create pdiff account move lines on
the invoice.

**Expected behavior:**
With manual valuation, there should not be pdiff AMLs.

**Steps to reproduce:**
1. Create a product with average costing and manual valuation

2. Receive 10 units @ $100 to establish some std price

3. Consume the 10 product qty (scrap, sale, ...)

4. Create the invoice on the purchase order

5. Change the price unit on the bill to $120 per product -> post

6. In the journal items tab on the invoice, see the pdiff AMLs

**Cause of the issue:**
No consideration for valuation when creating the AMLs for pdiff.

**Fix:**
Check that valuation is `real_time` prior to creating the AMLs.

opw-4492217

closes #197009

X-original-commit: d67ea2d
Signed-off-by: Adrien Widart (awt) <awt@odoo.com>
Signed-off-by: Vincent Ethan <etvi@odoo.com>
@robodoo robodoo closed this Feb 17, 2025
@fw-bot fw-bot deleted the 17.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-414559-fw branch March 3, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants