-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[FW][FIX] purchase_stock: respect manual valuation #197902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FW][FIX] purchase_stock: respect manual valuation #197902
Conversation
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 |
@ethanrobv @adwid ci/runbot failed on this forward-port PR |
bd90c3f
to
9974dc0
Compare
@ethanrobv @adwid this PR was modified / updated and has become a normal PR. It must be merged directly. |
9974dc0
to
c6a6728
Compare
@ethanrobv @adwid this forward port of #196786 is awaiting action (not merged or closed). |
@robodoo r+ |
@ethanrobv @adwid unable to stage: merge conflict |
c6a6728
to
2fe3bb5
Compare
@robodoo r+ |
@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
2fe3bb5
to
19121f2
Compare
@robodoo r+ |
@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 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>
**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>
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:
Create a product with average costing and manual valuation
Receive 10 units @ $100 to establish some std price
Consume the 10 product qty (scrap, sale, ...)
Create the invoice on the purchase order
Change the price unit on the bill to $120 per product -> post
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