diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-07-04 11:26:59 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-07-09 14:56:43 +0000 |
| commit | 14812f41710282f9923078f6764323086500ae85 (patch) | |
| tree | 7e46457837dbe5adee65cfb84189521fcb248062 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 3db2f7f73d2071aa51e3cd2182ef5e0ca38aabad (diff) | |
[REF] sale_stock: invoice_policy shouldn't impact valuation
The invoice status of a sale order line depends on its product's
`invoice_policy` and `qty_delivered` fields.
`invoice_policy` is also used to compute the "anglo saxon price
unit" which is, once multipled by the invoiced quantity, the
amount we will take from the stock delivered account to put into
the cost of goods sold account if we are in anglo saxon mode.
The default `invoice_policy` is set as "ordered". In this mode and in
anglosaxon, the "anglo saxon price unit" will always be standard price
of the product, resulting in unbalanced accounts.
In this task, we chose to use the real delivered price if something was
delivered, whatever the value of `invoice_policy`. We fallback on the
standard price if nothing or not enough things were delivered.
test_dropship_fifo_perpetual_anglosaxon_ordered and
test_dropship_fifo_perpetual_anglosaxon_delivered do have the same
result now.
task-2003196
closes odoo/odoo#34644
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
