Perhaps wrong error message when en adress has not invoincing checked

I am trying to use tryton 6.0
i made a sale, withe right client and right period and i can’t validate it says :

You are trying to read records “540” of “Address” that don’t exist anymore.

in fact the address still exists BUT had not the invoice checked. i think maybe the error message could be more precise ?

There is no constraint that force the invoice address to have the invoice checkbox checked. This is just a way to define the default value.

We need more information about your setup and your workflow.
Often such error message happens when using the historisation.

what i was trying to says that if an adress has not the invoice checkbox checked, it is not possible to make an invoice for it.
i have a vanilla set up of 6.2 maybe be a account thong or someting else… BUT after that message if i go check the checkbox, no more error.

Again there is no such constraint in Tryton and if there was the error message would not be that the record can not be read.
So I suspect that you have account_invoice_history activated and that the address used for the invoice does not exist at the history datetime.
Also 6.2 is no more supported since 3 years and there have been fixed like Set invoice number late (#11982) · Issues · Tryton / Tryton · GitLab after. So as long as you are using an unsupported version, you can not expect more help.

well.

i do not want a "“support” for that version. I do not “care” about this problem, i identify the problem, found my solution everything is ok for me. i was just willing to share what i found.
i do not know if i have an account_invoice_history or not. BUT i do think that this message is still waiting somewhere to burst one time or another. and i thought it was a good idea to share

  1. if someone get the error message he find the direct solution here
  2. if someone is writing code in the suburbs of it, it could be corrected.

of course 6.2 is not support. But it is the version you get with the last debian stable i could install on my hosting.

My accounting is on 3.4 and it works perfectly for what i am doing, for years…

i do not want to me misunderstood : i am really happy with tryton, i work on the same software since the parent of tiny-erp. And i recommend it each time the situation comes. I just wanted to help with what i found, but sometime i have the impression to disturb…

I did not choose a 7 version because the version demo on line was not working, and i do not want to struggle.
the version i have feats our needs perfectly