summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-05-18 11:46:38 +0200
committerGoffin Simon <sig@odoo.com>2017-05-18 15:15:01 +0200
commitfa87b0d6fff52f42c70ac80bce32f4133c825a66 (patch)
tree11f65344e5d900a3ac142c78eb8c01ba1483fcbc /addons/web/static/src/js/views/basic/basic_controller.js
parent4cbbbaddd5735c8f91c2ccecc33f9e2d4dc6af61 (diff)
[FIX] purchase: _anglo_saxon_purchase_move_lines
Let's consider a stockable product P with a product category PC with costing method = real price, valuation = perpetual, stock valuation account = SVA and price diff account = PDA. The cost defined for P in product.template is equal to 1$. Steps -Create a PO for P with a price unit = 5$ -Confirm PO and generate the invoice -Update the qty for P in the invoice and validate it(price unit is still 5$) Bug: In the general ledger: a move with a debit of 1$ is created for SVA and a debit of 4$ is created for PDA which is wrong. The expected result is: just a move of 5$ created for SVA and nothing for PDA because the difference between the purchase price and the invoiced price is 0. This commit fixes this problem. NB: in real price and average price, the considered cost must be the purchase price and not the cost defined in the product template. opw:740879
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions