diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-05-11 11:20:47 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-06-09 14:11:36 +0000 |
| commit | 977169feeb68c2df6a2a5f8b247024949633efc0 (patch) | |
| tree | e1e8c814e7f11ced0b04cb0a50ca8997e979b2c0 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 0477bdb75afafa62b204f29e9dbfc3fc5fd012d4 (diff) | |
[REF] stock_account: unit price of rereturn
`_get_price_unit` is used to get the price to value a stock move and
returns `unit_price` if present (most of the times it is set by purchase_stock
to copy the price unit of po line) or the standard price.
Note that a return copies the original move and `price_unit` is set as
copy False.
Before this patch, a return of a return used the standard price (due to
the copy False), which doens't bring any issue but could be confusing
as explained in the following receipt scenario.
On a receipt, return and rereturn. The original and rereturn move may
not have the same price if the standard price has changed between the
operations, which is weird since there's a unit price on a potentially
linked po line.
On an delivery, there won't be any effect since the valuation methods do
not use the result of `_get_price_unit` but force it to the standard
price (standard and avco) or run fifo.
task-1875873
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
