Commit Graph

12 Commits

Author SHA1 Message Date
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
Aaron Bohy ba37ae3cf3 [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
Fabien Pinckaers 1564a66dd6 [FIX] improving manifests 2014-08-30 13:18:33 +02:00
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +02:00
qdp-odoo dce11788fa [FIX] stock_landed_costs: fixed several issues related to the computation and the accounting entries creation. Added a yaml test to cover the different split methods 2014-08-08 10:58:14 +02:00
Quentin (OpenERP) d4d4a894c8 [IMP] stock_landed_costs: added short module description
bzr revid: qdp-launchpad@openerp.com-20140508141956-5sty7tdk6iflfs0h
2014-05-08 16:19:56 +02:00
Mansi Kariya (OpenERP) 440ddae7f8 [ADD] Added sequence on Stock Landed Cost and added Landed Cost type Configuration view and improved product view
bzr revid: mka@tinyerp.com-20140425104945-1vfv217uy1xhbnmx
2014-04-25 16:19:45 +05:30
DJ Patel d0fc220091 [ADD] stock_landed_costs : Added the access rights.
bzr revid: mdi@tinyerp.com-20140424114017-faura7ny873msnlc
2014-04-24 17:10:17 +05:30
DJ Patel d626d770bf [ADD] stock_landed_costs : Added the openchatter notification system.
bzr revid: mdi@tinyerp.com-20140424100337-fbcyr73fjbj5gecw
2014-04-24 15:33:37 +05:30
Quentin (OpenERP) 19dad8973c [FIX] stock_landed_cost: setting option appears at the right place in the right moment
bzr revid: qdp-launchpad@openerp.com-20140424085838-nzk6p11ncitvkbta
2014-04-24 10:58:38 +02:00
DJ Patel b9a1104e48 [IMP] stock_landed_cost : Changed the 'auto_install' to False.
bzr revid: mdi@tinyerp.com-20140417085827-rg5wwf7u8owczqrt
2014-04-17 14:28:27 +05:30
DJ Patel d0dbdf8082 [ADD] stock_landed_costs : Added the stock_landed_costs module.
bzr revid: mdi@tinyerp.com-20140408113935-67fykki3056w8hr8
2014-04-08 17:09:35 +05:30