diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2021-01-27 14:09:54 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2021-01-28 10:59:09 +0000 |
| commit | 8b7ca94c70e374f7c0d5850a7976bc2cbf0b0b40 (patch) | |
| tree | b2844e5bef7fb795858462e767647d9947554b40 /addons/web_editor/static/src/js | |
| parent | ad56d50e3da000cacdc70d9230cad308d03680bf (diff) | |
[FIX] web: Display Header/Footer company details on Contact reports
Issue
- Install "Contacts" and "Studio" modules
- Go to "Contacts" and switch to Studio
- Go to "Reports" tab
- Create a new report
- Select "External" layout
Header and footer are missing on report.
Cause
Header is displayed if 'company' has a value.
However, here, we only check if 'company_id' is available
in current record fields, not checking if also set.
Solution
Check that 'company_id' is set on current record, else,
fallback on 'res_company'.
opw-2443234
closes odoo/odoo#65202
X-original-commit: 7c4510042ec35a7da10741595a4da56c3b3c4cdf
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions
