Skip to content
Snippets Groups Projects
user avatar
Nasreddin (bon) authored
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#65210

X-original-commit: 7c451004
Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
3f8088aa
History
Name Last commit Last update