[FIX] stock_account: fixed the stock valuation at date report

bzr revid: qdp-launchpad@openerp.com-20131206165006-47db8kyuxjm8s0bo
This commit is contained in:
Quentin (OpenERP) 2013-12-06 17:50:06 +01:00
parent 3115161c29
commit 823e945477
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class stock_history(osv.osv):
cr.execute("""
CREATE OR REPLACE VIEW stock_history AS (
(SELECT
quant.id AS id,
stock_move.id::text || '-' || quant.id::text AS id,
stock_move.id AS move_id,
stock_move.location_dest_id AS location_id,
stock_move.product_id AS product_id,
@ -103,7 +103,7 @@ class stock_history(osv.osv):
WHERE stock_move.state = 'done' AND location.usage = 'internal'
) UNION
(SELECT
- quant.id AS id,
'-' || stock_move.id::text || '-' || quant.id::text AS id,
stock_move.id AS move_id,
stock_move.location_id AS location_id,
stock_move.product_id AS product_id,