Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Base
Entity: res.company
Compute Method: _compute_logo_web
| Inputs | Method | Outputs |
|---|---|---|
|
for company in self:
img = company.partner_id.image_1920
- company.logo_web = img and base64.b64encode(tools.image_process(base64.b64decode(img), size=(180, 0)))
+ company.logo_web = img and base64.b64encode(image_process(base64.b64decode(img), size=(180, 0)))
|
|
