Creating a credit note with currency different from company throws a domain validation error
This is a bug in version 5.8 When you credit an invoice that has a currency different from company's currency, a validation error will pop up that says: """The value for field "Lines" in "Invoice" is not valid according to its domain.""" I believe the bug is due to expansion of the domain for the field lines in account.invoice to include check for currency. But when account.invoice.line are created in the __credit function they take de default currency value which is that of the company and not the invoice hence violating the domain check. I think it is solve by adding "currency" keyword in the list of fields to copy.