{"push_id":1074958322,"size":2,"distinct_size":2,"ref":"refs/heads/8.0-opw-675222-landed-nim","head":"543f94a7e53dc748f58d8dd8f47d2dee0f7e24f6","before":"42c878bd6507cc725160169a3a9480c2c4b69321","commits":[{"sha":"5c95dc93da1559cf3409f2fc29eaddb90a2e34db","author":{"email":"771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com","name":"Nicolas Martinelli"},"message":"[FIX] stock_account: account/valuation inconsistencies\n\nWhen the product price is divided per product unit, inconsistencies\nmay arise between the real stock valuation and the stock valuation\naccount. This is likely to happen when a product is bought in a UoM\ndifferent from the standard UoM of the product.\n\nA numerical example is the following: a box of 13 is bought for 15.00.\nAn amount of 15.00 is recorded when the products enter the stock. If the\nproduct leave the stock one at a time, 13 entries of 1.15 are recorded\n(15.00/13 = 1.153846... ≈ 1.15), which is then equal to\n13 * 1.15 = 14.95. In this case, All the products have left the stock\n(stock valuation is zero), but 5 cents remain on the account.\n\nThis is of course even worse the higher the ratio is. For example, a\nbox of 4.00 split into 1000 units sold piece by piece will never be\nrecorded when a product leaves the stock.\n\nThe fix is to record the rounding difference on a specific quant. In the\nprevious example, instead of adding 1.153846... on the unit cost of the\n13 units, we do the following:\n- 12 units to which we add 1.15 on unit cost\n- 1 unit to which we add 1.20 on unit cost\n\nopw-675222","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/5c95dc93da1559cf3409f2fc29eaddb90a2e34db"},{"sha":"543f94a7e53dc748f58d8dd8f47d2dee0f7e24f6","author":{"email":"771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com","name":"Nicolas Martinelli"},"message":"[FIX] stock_landed_costs: account/valuation inconsistencies\n\nWhen stock landed costs are divided per product unit, inconsistencies\nmay arise between the real stock valuation and the stock valuation\naccount. This is likely to happen when several products are bought, but\nthese products leave the stock one at a time.\n\nA numerical example is the following: a landed cost of 15.00 is applied\nto a purchase of 13 units. An amount of 15.00 is recorded when the\nproducts enter the stock. If the product leave the stock one at a time,\n13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which\nis then equal to 13 * 1.15 = 14.95. In this case, All the products have\nleft the stock (stock valuation is zero), but 5 cents remain on the\naccount.\n\nThis is of course even worse the higher the ratio is. For example, a\nlanded cost of 4.00 split into 1000 units sold piece by piece will never\nbe recorded when a product leaves the stock.\n\nThe fix is to record the rounding difference on a specific quant. In the\nprevious example, instead of adding 1.153846... on the unit cost of the\n13 units, we do the following:\n- 12 units to which we add 1.15 on unit cost\n- 1 unit to which we add 1.20 on unit cost\n\nopw-675222","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/543f94a7e53dc748f58d8dd8f47d2dee0f7e24f6"}]}