diff options
| author | Goffin Simon <sig@odoo.com> | 2018-09-19 14:10:13 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-10-01 14:05:58 +0200 |
| commit | e764739d0d81d91feb757e4ba9007d175db8a0eb (patch) | |
| tree | 291662738b10b11acfa35ae640c48df02d8ba984 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 0a94a766e6422dad062abbca1afa0d5b54983fa2 (diff) | |
[FIX] sale_mrp: price unit of kit
- Create the following products in FIFO costing method and real-time
valuation:
Prod Final (F); Invoiced on Delivered Quantity
Prod Comp1 (C1); Cost = 20
Prod Comp2 (C2); Cost = 10
- Create the BOM Kit for F:
2 Unit(s) of C1
1 Unit(s) of C2
- Create a SO for 3 Unit(s) of F
- Validate SO and picking
- Create the invoice and validate
The price unit taken into account for F in the anglo-saxon accounting
entry is:
20 + 10 = 30
=> entry in Stock Output Account is 3 * 30 = 90
while it should be:
(2 * 20) + (1 * 10) = 50
=> entry in Stock Output Account is 3 * 50 = 150
This should finally fix issues corrected with:
9a7ed7c: price unit multiplied by the qty sold (*)
f1fdb97: price unit taking into account only 1 unit of each
component
(*) In the use case solved, the price unit was:
(6 * 20) + (3 * 10) = 150
=> entry in Stock Output Account is 3 * 150 = 450
opw:1886216
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
