summaryrefslogtreecommitdiff
path: root/odoo/tools/date_utils.py
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2019-04-02 14:50:55 +0000
committerGoffin Simon <sig@odoo.com>2019-04-03 08:49:57 +0000
commit2c702108b815014c9bbb0c910280a4aeea15abc7 (patch)
tree19706633a9731f538301bca2e84a5ce799994757 /odoo/tools/date_utils.py
parent5d1661e6f44c7cd360a0a1adfbd16a1881dd5f19 (diff)
[FIX] purchase_stock: Wrong journal entry created from vendor bill
Steps to reproduce: - Create a storable product P with a vendor V and a purchase price = 100€ - Set the category of the prodcut to automated and AVCO and set a price diff account on it - Create PO for V with 10 P with a price_unit = 110€ - Confirm the PO and deliver 7 P with no backorder - Change the ordered quantity of P to 9 on PO (and the unit_price will be set to 100€) - Go on the delivery order and deliver 2 remainig P - Create the invoice and validate it Bug: The amount due on the invoice was 900.02€ instead of 900.00€ PS: The debit and credit of an aml are computed with the price (defined in function _anglo_saxon_purchase_move_lines) with the function _convert_prepared_anglosaxon_line defined on model account.invoice. So rounding the price unit after the computation of the price allows to keep the same total as the one computed for the PO. opw:1951465 closes odoo/odoo#32345 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'odoo/tools/date_utils.py')
0 files changed, 0 insertions, 0 deletions