[FIX]:lp-500931 No analytic entry is generated finishing one production order

bzr revid: ksa@tinyerp.co.in-20101116094738-4re2jphx8t0emwcc
This commit is contained in:
ksa (Open ERP)
2010-11-16 15:17:38 +05:30
parent 496205710e
commit 01c15d9cce
+3 -2
View File
@@ -737,7 +737,7 @@ class mrp_production(osv.osv):
'account_id': account,
'general_account_id': wc.costs_general_account_id.id,
'journal_id': wc.costs_journal_id.id,
'code': wc.code
'ref': wc.code
} )
if wc.costs_journal_id and wc.costs_general_account_id:
value = wc_line.cycle * wc.costs_cycle
@@ -750,7 +750,8 @@ class mrp_production(osv.osv):
'account_id': account,
'general_account_id': wc.costs_general_account_id.id,
'journal_id': wc.costs_journal_id.id,
'code': wc.code
'ref': wc.code,
'product_id': production.product_id.id
} )
return amount