Skip to content
Snippets Groups Projects
Commit f9ce7d1f authored by Lucas Perais (lpe)'s avatar Lucas Perais (lpe)
Browse files

[FIX] account: report overdue: name of company duplicated


Have a partner which is only a company
Print "Due Payments" report

Before this commit, the name of the company was shown in double
this was because both `name` and `contact_address` are shown in that report
but in the case of a company, or child of a company, the company's name
is included in contact_address

After this commit, the name appears only once

OPW 1970581

closes odoo/odoo#32838

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent 0106fcd5
Branches
Tags
No related merge requests found
......@@ -5,7 +5,8 @@
<div class="page">
<div class="row">
<div class="col-xs-5 col-xs-offset-7">
<span t-field="o.name"/><br/>
<!-- When partner is a company, its name is included in contact_address -->
<span t-if="not o.is_company"><span t-field="o.name"/><br/></span>
<span t-raw="o.contact_address.replace('\n\n', '\n').replace('\n', '&lt;br&gt;')"/>
<span t-field="o.vat"/>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment