78c2dba93fb3d4f5149e2ff681a1eb708618f8b7
Before this commit, avatar url of author of message always had style `.o_object_fit_cover`, which makes a nice crop when ratio of image does not match ratio of the `img`. When the author of message is a company, it shows the logo of the company, and it doesn't look nice to crop it. This commit fixes the issue by using `.o_object_fit_contain` for avatar of company, so that the logo is fully visible. When displaying the avatar of a partner whose `is_company` is undefined, the data is group-fetched, in order for models to eventually know the value of `is_company` and use the correct desirable showing. Task-3381748 closes odoo/odoo#133311 X-original-commit: 48194366f2364e2eb9d99dc4fb71e2de83d8f7a2 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%