From 9b76b258ca8f68a9f367ad79a28828e9136be8c2 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Wed, 26 Feb 2014 12:10:19 +0100 Subject: [PATCH 1/2] [FIX] missing check on name_get in claim_rma --- crm_claim_rma/crm_claim_rma.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index b818a4be..0a3197b2 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -343,6 +343,8 @@ class crm_claim(orm.Model): def name_get(self, cr, uid, ids, context=None): res = [] + if isinstance(ids, (int, long)): + ids = [ids] for claim in self.browse(cr, uid, ids, context=context): res.append((claim.id, '[' + claim.number + '] ' + claim.name)) return res From c062328392662db61740aab318a13ddb966fdf00 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Wed, 26 Feb 2014 12:11:38 +0100 Subject: [PATCH 2/2] [ADD] buttons to access to picking from claim_rma --- crm_claim_rma/crm_claim_rma_view.xml | 10 ++++++++++ crm_claim_rma/stock_view.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/crm_claim_rma/crm_claim_rma_view.xml b/crm_claim_rma/crm_claim_rma_view.xml index 65d686b8..9878be0b 100644 --- a/crm_claim_rma/crm_claim_rma_view.xml +++ b/crm_claim_rma/crm_claim_rma_view.xml @@ -305,6 +305,16 @@ attrs="{'invisible': ['|',('partner_id','=', False),('claim_type','in', ['customer','other'])]}" context="{'search_default_partner_id': [partner_id],'search_default_user_id':False}" /> +