[IMP] mail_plugin: return the "is_company" field
Purpose ======= Return the "is_company" field for the <res.partner>, so when the partner has no image, we can display the appropriate placeholder image (person for non-company and buildings image for company). Task 2496443 closes odoo/odoo#69562 X-original-commit: 37766d3ef32816f332cd285cce8dbb1fa5e4b66a Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -267,7 +267,7 @@ class MailPluginController(http.Controller):
|
||||
|
||||
def _get_partner_data(self, partner):
|
||||
|
||||
fields_list = ['id', 'name', 'email', 'phone', 'mobile']
|
||||
fields_list = ['id', 'name', 'email', 'phone', 'mobile', 'is_company']
|
||||
|
||||
partner_values = dict((fname, partner[fname]) for fname in fields_list)
|
||||
partner_values['image'] = partner.image_128
|
||||
|
||||
Reference in New Issue
Block a user