diff options
| author | Goffin Simon <sig@odoo.com> | 2016-08-17 10:59:00 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2016-08-18 11:19:07 +0200 |
| commit | 0bfcf65200212671ecdbc7381b93568f976dd744 (patch) | |
| tree | 8145901536c86e1b033f8481c7923b6bae5c4669 | |
| parent | 06fdc2a6deff12c999b285ffedba045c90c11f8a (diff) | |
[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
| -rw-r--r-- | openerp/addons/base/res/res_partner.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
