# Addressing Company Invoice Party Name in Report

**URL:** https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511
**Category:** User
**Created:** [August 2, 2021, 3:13pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511 "2021-08-02T15:13:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lblabr](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/l/57b2e6/32.png) [@lblabr](https://discuss.tryton.org/u/lblabr)
#### Post date: [August 2, 2021, 3:13pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511/1 "2021-08-02T15:13:11Z")

</div>

I’m quite new in Tryton and i started to modify my invoice template. Due the fact, that the company.rec\_name is written to the document iw ould like to replace that by the invoice party name, how may i reach that ? could somebody a little explain how i may find that by using the model ???

thanks in advance

Lars

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [August 2, 2021, 5:58pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511/2 "2021-08-02T17:58:42Z")

</div>

> [@lblabr](#):
>
> Due the fact, that the company.rec\_name is written to the document iw ould like to replace that by the invoice party name

I’m not sure swapping the company name (your company) for the invoice party name (which is either the customer, or supplier, name depending on the type of the invoice) is the best idea…

However, if you really do want to do this, then `invoice.party.name` may be what you are looking for.

> [@lblabr](#):
>
> could somebody a little explain how i may find that by using the model ???

You can find this by looking through the models and fields in the [Administration \> Models \> Models](https://demo.tryton.org/model/ir.model). In the `Invoice` model you will find a `party` field that has a Many2One relationship with the `Party` model. In the `Party` model you will find the name field.

---

<div class="post-metadata">

### Author: ![lblabr](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/l/57b2e6/32.png) [@lblabr](https://discuss.tryton.org/u/lblabr)
#### Post date: [August 2, 2021, 6:24pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511/3 "2021-08-02T18:24:55Z")

</div>

i still find browsing through the model is hard …

i tried with:

company.party.addresses[0].party\_name

maybe i should check additional attributes to find the right one …

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [August 2, 2021, 7:08pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511/4 "2021-08-02T19:08:36Z")

</div>

I think it really depends on what you are looking for.

However, on thing it is important to realize is that the same invoice template is used for both customer and supplier invoices.

The `party_name` field in the address is specific to that address, and is intended to replace the name of the party when you are printing that address. So this will be the party\_name field from your companies first address.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [September 1, 2021, 7:09pm UTC](https://discuss.tryton.org/t/addressing-company-invoice-party-name-in-report/4511/5 "2021-09-01T19:09:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
