diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2019-04-19 12:40:11 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2019-04-19 12:48:07 +0000 |
| commit | f9ce7d1fc8f901efc9db397ec4786d8710aabd53 (patch) | |
| tree | b2f067bc56ae2faf7596d9431a0f76a9168f604e | |
| parent | 0106fcd59c8c97b1a1e39a263f305650978c0606 (diff) | |
[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: Lucas Perais (lpe) <lpe@odoo.com>
| -rw-r--r-- | addons/account/views/report_overdue.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/account/views/report_overdue.xml b/addons/account/views/report_overdue.xml index a413e77d0d3..9357917e370 100644 --- a/addons/account/views/report_overdue.xml +++ b/addons/account/views/report_overdue.xml @@ -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', '<br>')"/> <span t-field="o.vat"/> </div> |
