From be76fc5d30444a1953077cb5f45fb4fc6a20ddf2 Mon Sep 17 00:00:00 2001 From: Benoit Guillot Date: Fri, 12 Oct 2012 17:10:03 +0200 Subject: [PATCH] [FIX] fix description of the refund with the new module crm_claim_categ_as_name --- crm_claim_rma/wizard/account_invoice_refund.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crm_claim_rma/wizard/account_invoice_refund.py b/crm_claim_rma/wizard/account_invoice_refund.py index f764ab48..0d0a8471 100644 --- a/crm_claim_rma/wizard/account_invoice_refund.py +++ b/crm_claim_rma/wizard/account_invoice_refund.py @@ -31,10 +31,7 @@ class account_invoice_refund(osv.osv_memory): def _get_description(self, cr, uid, context=None): if context is None: context = {} - if context.get('description'): - description = self.pool.get('claim.rma.case').read(cr, uid, context.get('description'), ['name'], context=context)['name'] - else: - description = '' + description = context.get('description') or '' return description _defaults = {