diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-08-26 10:03:48 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-08-26 13:12:48 +0000 |
| commit | 0aaf7307decd55e54d7dc342391f97a964b9bf2c (patch) | |
| tree | eb3bc17d4e0a2298ed4d2e96250c08f76ae3507a /addons/mail/static/src/js/thread_windows/thread_window.js | |
| parent | cfbaba81c240b438a4d790fa63d5472b14d9b92c (diff) | |
[FIX] stock_account: price_unit after edit
- Product category: FIFO (real_time) / Automatic
- Product: storable, nvoicing based on delivered quantity, FIFO category
- Receive 3 units @ 30
- Create and confirm a SO for 1 unit
- Deliver requested qty to customer
- Unlock the picking, update the qty done to 3, lock.
- Invoice delivered qty
In the journal entry of the customer invoice, the COGS entry is 180
instead of 90.
The root cause of this is the incorrect price unit on the modified stock
move, which equals to -60 instead of -30.
The price unit should compute the weigthed average of the already
delivered quantity with the extra quantity.
opw-2047719
closes odoo/odoo#36065
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/thread_window.js')
0 files changed, 0 insertions, 0 deletions
