# Why don't we have the "Modify Header" button on invoices?

**URL:** https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452
**Category:** User
**Tags:** accounting
**Created:** [July 15, 2024, 5:47pm UTC](https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452 "2024-07-15T17:47:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![raimon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://discuss.tryton.org/u/raimon)
#### Post date: [July 15, 2024, 5:47pm UTC](https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452/1 "2024-07-15T17:47:53Z")

</div>

In draft invoices, the party field can be modified even if it has lines. However, in a purchase or sale, once it has lines, this field can no longer be modified.

What is the reason for the different behaviors?

If we have the account\_invoice\_line\_standalone module activated and the invoice is created with lines already party, if you want to modify the header, the party cannot be changed because there is a party relationship between the invoice and the lines.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 15, 2024, 9:56pm UTC](https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452/2 "2024-07-15T21:56:00Z")

</div>

> [@raimon](#):
>
> What is the reason for the different behaviors?

Because purchase and sale relies on the party value to fill some line fields but not invoice.

> [@raimon](#):
>
> If we have the account\_invoice\_line\_standalone module activated and the invoice is created with lines already party

This is strange because the goal of this module is to not create invoice.

> [@raimon](#):
>
> if you want to modify the header, the party cannot be changed because there is a party relationship between the invoice and the lines

Of course you can not link invoice line for a party to an invoice of another party.

---

<div class="post-metadata">

### Author: ![raimon](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://discuss.tryton.org/u/raimon)
#### Post date: [July 16, 2024, 8:35am UTC](https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452/3 "2024-07-16T08:35:49Z")

</div>

> [@ced](#):
>
> Because purchase and sale relies on the party value to fill some line fields but not invoice.

ok. In sales and purchase, there is a button “Modify Header”, and could change the header, and recompute some line values (price list, etc)

> [@ced](#):
>
> This is strange because the goal of this module is to not create invoice.

This module create lines. After, an user create the invoice and add lines.

In case now require change the invoice party , there is not “Modify header” to replace the header and recompute some lines values (in this case, the party).

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 16, 2024, 8:59am UTC](https://discuss.tryton.org/t/why-dont-we-have-the-modify-header-button-on-invoices/7452/4 "2024-07-16T08:59:12Z")

</div>

> [@raimon](#):
>
> In case now require change the invoice party , there is not “Modify header” to replace the header and recompute some lines values (in this case, the party).

Because it is not allowed as the lines are linked to a specific party.
