[MERGE] product_margin

bzr revid: fp@tinyerp.com-20121215182355-pmmdmb5uezejgk4a
This commit is contained in:
Fabien Pinckaers 2012-12-15 19:23:55 +01:00
commit 9651852c7c
1 changed files with 3 additions and 3 deletions

View File

@ -64,11 +64,11 @@ 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})
context.update(date_from = product_margin_obj.from_date)
if product_margin_obj.to_date:
context.update({'date_to': product_margin_obj.to_date})
context.update(date_to = product_margin_obj.to_date)
return {
'name': _('Product Margins'),
'context': context,