Skip to Content
Menu
This question has been flagged
1 Reply
1254 Views

Template: o3_annual_student_report.custom_external_layout_header
Path: /templates/t/div/div/div[2]/div
Node: <div t-field="company.partner_id" 
t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: true}"
 style="border-bottom: 1px solid black; display:inline-block;"/>
please tell me why this error is coming.


Avatar
Discard
Best Answer

Hi, 

In this the company variable might be getting as False that is why you are getting the error. Add an If condition to check whether the company holds a value

<t t-if="company">
<div t-field="company.partner_id"/>
</t>

Thanks

Avatar
Discard