odoo/addons/stock_landed_costs
Nicolas Martinelli eb26694e0f [FIX] stock_landed_costs: account/valuation inconsistencies
When stock landed costs are divided per product unit, inconsistencies
may arise between the real stock valuation and the stock valuation
account. This is likely to happen when several products are bought, but
these products leave the stock one at a time.

A numerical example is the following: a landed cost of 15.00 is applied
to a purchase of 13 units. An amount of 15.00 is recorded when the
products enter the stock. If the product leave the stock one at a time,
13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which
is then equal to 13 * 1.15 = 14.95. In this case, All the products have
left the stock (stock valuation is zero), but 5 cents remain on the
account.

This is of course even worse the higher the ratio is. For example, a
landed cost of 4.00 split into 1000 units sold piece by piece will never
be recorded when a product leaves the stock.

The fix is to record the rounding difference on a specific quant. In the
previous example, instead of adding 1.153846... on the unit cost of the
13 units, we do the following:
- 12 units to which we add 1.15 on unit cost
- 1 unit to which we add 1.20 on unit cost

opw-675222
2016-04-20 13:09:25 +02:00
..
i18n [I18N] Update translation terms from Transifex 2016-04-10 02:59:08 +02:00
security [ADD] stock_landed_costs : Added the access rights. 2014-04-24 17:10:17 +05:30
test [FIX] stock_landed_costs: account/valuation inconsistencies 2016-04-20 13:09:25 +02:00
__init__.py [ADD] stock_landed_costs : Added the stock_landed_costs module. 2014-04-08 17:09:35 +05:30
__openerp__.py [FIX] stock_landed_costs: account/valuation inconsistencies 2016-04-20 13:09:25 +02:00
product.py [IMP] product: refactoring of product variant. The main view became the view of product template and the product product (or product variant) are created with the variant values combinaison. Bom is splitted into bom and bom line and can use the variant combinaison. 2014-05-27 09:42:52 +02:00
product_view.xml [IMP] product: refactoring of product variant. The main view became the view of product template and the product product (or product variant) are created with the variant values combinaison. Bom is splitted into bom and bom line and can use the variant combinaison. 2014-05-27 09:42:52 +02:00
stock_landed_costs.py [FIX] stock_landed_costs: account/valuation inconsistencies 2016-04-20 13:09:25 +02:00
stock_landed_costs_data.xml [MERGE] stock_landed_costs: better usability 2014-04-25 14:46:34 +02:00
stock_landed_costs_sequence.xml [ADD] Added sequence on Stock Landed Cost and added Landed Cost type Configuration view and improved product view 2014-04-25 16:19:45 +05:30
stock_landed_costs_view.xml [FIX] stock_landed_cost: domain on expense account 2015-10-12 17:15:28 +02:00