Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented 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 not manual prior to creating the AMLs.

opw-4492217

Forward-Port-Of: #197009
Forward-Port-Of: #196786

@robodoo
Copy link
Contributor

robodoo commented Feb 17, 2025

Pull request status dashboard

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

fw-bot commented Feb 17, 2025

This PR targets 18.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

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Feb 17, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 17, 2025

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

@ethanrobv ethanrobv force-pushed the 18.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-416486-fw branch from bd90c3f to 9974dc0 Compare February 18, 2025 09:42
@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 18, 2025

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

@ethanrobv ethanrobv force-pushed the 18.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-416486-fw branch from 9974dc0 to c6a6728 Compare February 19, 2025 13:22
@fw-bot
Copy link
Contributor Author

fw-bot commented Feb 25, 2025

@ethanrobv @adwid this forward port of #196786 is awaiting action (not merged or closed).

@ethanrobv
Copy link

@robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Feb 25, 2025

@ethanrobv @adwid unable to stage: merge conflict

@ethanrobv ethanrobv force-pushed the 18.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-416486-fw branch from c6a6728 to 2fe3bb5 Compare February 25, 2025 13:10
@ethanrobv
Copy link

@robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Feb 25, 2025

@ethanrobv @adwid 'ci/runbot' failed on this reviewed PR.

**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: 1bd309c
@ethanrobv ethanrobv force-pushed the 18.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-416486-fw branch from 2fe3bb5 to 19121f2 Compare February 28, 2025 12:37
@ethanrobv
Copy link

@robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Feb 28, 2025

@ethanrobv @adwid 'ci/runbot' failed on this reviewed PR.

@robodoo robodoo closed this in 62dbc18 Feb 28, 2025
@xmo-odoo xmo-odoo deleted the 18.0-16.0-opw-4492217-manual-valuation-weird-entries-double-etvi-416486-fw branch March 7, 2025 10:21
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Mar 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

closes odoo/odoo#197902

X-original-commit: 1bd309cec15ab9b0f63e6870397cf7edbc1fa0b1
Signed-off-by: Adrien Widart (awt) <awt@odoo.com>
Signed-off-by: Vincent Ethan <etvi@odoo.com>
omar-sherif9992 pushed a commit to odoo-dev/odoo that referenced this pull request Mar 26, 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 odoo#197902

X-original-commit: 1bd309c
Signed-off-by: Adrien Widart (awt) <awt@odoo.com>
Signed-off-by: Vincent Ethan <etvi@odoo.com>
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