Odoo Help


display company name and invoice contact name on separate line

System Fix
on 7/31/16, 8:38 AM 1,332 views

on my forms  display and Pdf invoices i have the company and the invoice contact on the same line 


i would like to have 


Invoice name 

is the possible ? 


Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 9/19/17, 12:31 PM

In Developer mode, the definition of the Invoice report can be found at:

Settings --> Technical --> Actions --> Reports

  • Search for the account.invoice model

  • Open the Invoices Report

  • Click on Qweb views

These are the views that define how the address gets printed.

Look for lines like this:

<address t-field="o.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>

Which, rewritten, really look like this:

<address t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>

Those lines use a template (called contact) to print the address. 

The template is defined in odoo/odoo/addons/base/ir/ir_qweb.xml

If you remove name from the "fields" list, then it will not be printed, and you can add something above the address line like:

 <span t-field="o.partner_id.parent_id.name"/> <span t-field="o.partner_id.name"/>

Don't forget to test for cases where one or either is blank, and to make your own view that inherits and overrides the view you want to change instead of editing the base Odoo views.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/31/16, 8:38 AM
Seen: 1332 times
Last updated: 9/21/17, 4:45 AM