We work for many companies where we have different buyers so we would want the buyer on the quotation.
I added a field to sale order to select the specific contact person (x_partner_contact_id) that is shown in the form view and where we can select the right contact person.
I want to print this contact information on pdf of sales order. I created an inherited view of the sale order report with xpath as following, but it's not showing on pdf...
<xpath expr="//p[span[@t-field='doc.partner_id.vat']]" position="after">
<t t-if="doc.x_partner_contact_id">
<p class="mb-0">
<strong>Contactpersoon:</strong>
<span t-field="doc.x_partner_contact_id.name"/>
<t t-if="doc.x_partner_contact_id.email"> – <span t-field="doc.x_partner_contact_id.email"/></t>
<t t-if="doc.x_partner_contact_id.phone"> – <span t-field="doc.x_partner_contact_id.phone"/></t>
</p>
Thank you!
I'm not looking for the sales person (is indeed there), but the buyer at the customer side. Odoo support suggests using 'delivery or invoice' address, but that is not really what I want. I want a field: contact with the name or e-mail of my contact person...