# Cannot credit a customer invoice with erroneous tax

**URL:** https://discuss.tryton.org/t/cannot-credit-a-customer-invoice-with-erroneous-tax/8556
**Category:** User
**Tags:** accounting
**Created:** [May 5, 2025, 9:33am UTC](https://discuss.tryton.org/t/cannot-credit-a-customer-invoice-with-erroneous-tax/8556 "2025-05-05T09:33:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)
#### Post date: [May 5, 2025, 9:33am UTC](https://discuss.tryton.org/t/cannot-credit-a-customer-invoice-with-erroneous-tax/8556/1 "2025-05-05T09:33:23Z")

</div>

Hi,

Here’s my problem. A user forgot to add a tax identifier on a party, then made a sale, shipment and finally an invoice. Invoice is now posted and he noticed (indeed it’s too late) that the tax is incorrect (21% instead of 0%).  
Then the user adds the correct tax identifier on the party.

To fix the error, i want to credit the invoice with the wizard but i’m always having the warning: “The invoice (…) does not have the default taxes for…”

 ![2025-05-05_10-59](https://discuss-cdn.tryton.org/uploads/default/original/2X/7/7067ed333306e3752b8a20bc9de8cecc363d0847.png)

There’s a loop on this warning. Bug ?

Any other to solve this ? (create manually a credit not, create manually another invoice,… )

Thanks 🙂

---

<div class="post-metadata">

### Author: ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)
#### Post date: [May 5, 2025, 9:41am UTC](https://discuss.tryton.org/t/cannot-credit-a-customer-invoice-with-erroneous-tax/8556/2 "2025-05-05T09:41:56Z")

</div>

Solved with removing “Customer tax rule” on 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: [May 5, 2025, 10:37am UTC](https://discuss.tryton.org/t/cannot-credit-a-customer-invoice-with-erroneous-tax/8556/3 "2025-05-05T10:37:33Z")

</div>

This is a typical example that would be fixed by [Support warning keys of newly created record (#10591) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/10591).
