[FIX] product_margin: Fix header translation issue

lp bug: https://launchpad.net/bugs/937856 fixed

bzr revid: psi@tinyerp.com-20121030124727-tm5vdpld7oiwpjlx
This commit is contained in:
Purnendu Singh (OpenERP) 2012-10-30 18:17:27 +05:30
parent 87d3caa50f
commit 1607b1ddc7
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class product_margin(osv.osv_memory):
#get the current product.margin object to obtain the values from it
product_margin_obj = self.browse(cr, uid, ids, context=context)[0]
context = {'invoice_state' : product_margin_obj.invoice_state}
context.update({'invoice_state' : product_margin_obj.invoice_state})
if product_margin_obj.from_date:
context.update({'date_from': product_margin_obj.from_date})
if product_margin_obj.to_date: