So I am currently working on adapting the invoice report template. Everything works fine, however, on a posted invoice the unit of the position changes for some reason. I am quoting some German here, so please bear with me.
Let’s say I sell 3 units of an item. On the draft invoice and the offer and the delivery note, in the position table it will say “3 Stück”, where “Stück” is the German unit here.
However, when the invoice it posted, “Stück” will change to “u”, which is not desirable for invoices in German.
But if I use the “Invoice (revised)” print entry once, it is changed to “Stück” again. And from then it is fine for this invoice.
So my workaround at the moment is to use the “revised” function for every new invoice, but of course this is something that can be forgotten. Is there any advise on how I can debug this behavior?
For me it looks like the unit symbol is displayed in English instead of German.
So what is the language of the invoiced party? What is the default language?
Thanks for the quick reply. I made sure that everything is set to German, and on the delivery note / the offer the correct unit is used. If something was set to English, I would assume that it would always say “unit” or “u”.
With revised, I mean the function that re-creates the invoice report. In the source code it is identified as "“model:ir.action,name:refresh_invoice_report_wizard” in the account_invoice module, and appears as “Invoice (revised)” under the print button.
It is the same function that always generates the report on posting or refreshing so there should not be any different rendering except if some data has been changed meanwhile.