summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-04-14 13:15:03 +0200
committerNicolas Martinelli <nim@odoo.com>2016-04-14 13:37:15 +0200
commit7ab2d0e647d0e8386294138a61c3ec1d55e95b02 (patch)
treec82c12cc690bfcb547972420c421e6b75fa49533 /addons/web/static/src/xml
parent3705a868d1188905dc9c090d57727ba1cd0926b5 (diff)
[FIX] sale_stock: unit price rounding
Rounding the unit price at that moment is a bad idea. Here is the use case: - Set the product 'Costing Method' to 'Real Price' - Set the product 'Inventory Valuation' to 'Perpetual' - Receive through a PO 9 products for a unit price of 115.80 - Receive through a PO 35 products for a unit price of 116.80 - Sell these 44 products thanks to a SO, generate and validate the invoice On the Stock Output Account, the following entries will be generated: - First PO --> 1042.20 = 9 * 115.80 - Second PO --> 4088.00 = 35 * 116.80 - Invoice --> 5130.22 = 44 * 116.596 116.596 is the average price of the two POs, but rounded. The issue is that there are 2 cents of difference... Nice ;-) The fix is to avoid the rounding of the unit price, since we don't even store it on the account move line anyway. opw-673976
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions