Issue 9854

the currency of the invoice lines is not the same as the currency of the header
Nosy list
ced, reviewbot, sylviegar
Assigned to
backport, review

Created on 2020-11-20.10:01:08 by sylviegar, last changed 2 days ago by reviewbot.


File name Uploaded Type Details
Capture.JPG sylviegar, 2020-11-30.09:10:21 image/jpeg view


Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-30.14:57:54

I made the currency on invoice line required because with the domain it is defacto required.
I think it is not a problem to backport this because even if existing database does not have the schema updated, the constraint will still be enforced by trytond.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-30.14:54:08

I could reproduce. This happens when an invoice is created in a different currency than the company. The default value for currency on the invoice line (which is the display) is still the one from the company.
Here is review324581002 which update the currency of the line using the invoice currency. It also adds domain constraint on the invoice lines to ensure coherence between both fields (but also with other fields used for standalone).

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-30.10:57:42

Please give a procedure to reproduce the problem.
This must include the modules activated, the steps done before and those to create such invoice.

Author: [hidden] (sylviegar)
Date: 2020-11-30.09:10:21

the detail is in the attachment

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-20.11:01:30

Could you explain exactly what you mean?
What do you name "currency of the invoice lines"?

Author: [hidden] (sylviegar)
Date: 2020-11-20.10:01:06

In purchase and sales invoices, the currency of the invoice lines is not the same as the currency of the header.

Date User Action Args
2020-11-30 15:28:31reviewbotsetmessages: + msg62312
2020-11-30 14:57:54cedsetmessages: + msg62308
2020-11-30 14:56:38cedsetkeyword: + backport
2020-11-30 14:54:46reviewbotsetmessages: + msg62307
nosy: + reviewbot
2020-11-30 14:54:08cedsetassignedto: ced
component: + account_invoice
keyword: + review
messages: + msg62305
reviews: 324581002
status: need-eg -> testing
2020-11-30 10:57:42cedsetmessages: + msg62303
2020-11-30 09:10:21sylviegarsetfiles: + Capture.JPG
messages: + msg62301
2020-11-20 11:01:30cedsetmessages: + msg62057
nosy: + ced
status: unread -> need-eg
2020-11-20 10:01:08sylviegarcreate

Showing 10 items. Show all history (warning: this could be VERY long)