Odoo Help


This community 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.


Sales Order Report - Changing format of Company Name, Contact Name

Navin Shettigar
on 5/10/16, 10:53 PM 581 views

In the Sales order document report the Company Name & Contact person name is displayed as in the Order form view i.e. XYZ Company, Mr. John and then address, phone and fax. I am unable to change it to Only Company Name and then Contact Person's information eg,

XYZ Company




Mr John

Email of MR. John 

Mobile No. of Mr. John

 Can some one please explain how the this syntax works, (Excuse me if some one has already asked this question before.)

<div t-field="doc.partner_invoice_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: true, &quot;phone_icons&quot;: true}"/>  


Thankyou very much Ray. Your solution worked for me very nicely.

Navin Shettigar
on 5/12/16, 1:51 AM

Ray Carnes

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

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. 

Ray Carnes
On 5/11/16, 10:51 PM

Make sure you test for the cases where you are selling to:

  • a Company

  • a Contact

  • a Contact at a Company

You probably want most of these fields:

<div t-field="doc.partner_invoice_id.parent_id.name" /> <div t-field="doc.partner_invoice_id.parent_id.street" /> <div t-field="doc.partner_invoice_id.parent_id.street2" /> <div t-field="doc.partner_invoice_id.parent_id.city" /> <div t-field="doc.partner_invoice_id.parent_id.state_id.code" /> <div t-field="doc.partner_invoice_id.parent_id.zip" /> <div t-field="doc.partner_invoice_id.parent_id.country_id" /> <div t-field="doc.partner_invoice_id.parent_id.phone" /> <div t-field="doc.partner_invoice_id.parent_id.fax" /> <div t-field="doc.partner_invoice_id.name" /> <div t-field="doc.partner_invoice_id.email" /> <div t-field="doc.partner_invoice_id.mobile" />


Prakash Sharma

--Prakash Sharma--
| 2 1 4
Delhi, India
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 5/11/16, 3:02 AM

remove address,fax from the fields Like:

t-field-options='{"widget": "contact", "fields": ["name","phone"]}'

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 5/10/16, 10:53 PM
Seen: 581 times
Last updated: 5/12/16, 1:48 AM