From 0bfcf65200212671ecdbc7381b93568f976dd744 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 17 Aug 2016 10:59:00 +0200 Subject: [PATCH] [FIX] base: Individual contact gets Company icon Steps to reproduce: - Create a contact (Company). - Create a "child" in this company. - Select "Contact" as type of address. - Create an individual child of the company. Bug: instead of having the Individual icon (Human being), it gets the Company icon (Building). Fix: the behavior must be the same as in 8.0, the avatar must be used for a contact which is not a company. opw:683105 --- openerp/addons/base/res/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/res/res_partner.py b/openerp/addons/base/res/res_partner.py index 2e31228306c..95129617e1c 100644 --- a/openerp/addons/base/res/res_partner.py +++ b/openerp/addons/base/res/res_partner.py @@ -245,7 +245,7 @@ class Partner(models.Model, FormatAddress): colorize, img_path, image = False, False, False - if partner_type in ['contact', 'other'] and parent_id: + if partner_type in ['other'] and parent_id: parent_image = self.browse(parent_id).image image = parent_image and parent_image.decode('base64') or None