Tryton - Issues

 

Issue9300

Title Access error for invoice with replaced party
Priority bug Status unread
Superseder Nosy List ced
Type behavior Components account_invoice_history
Assigned To Keywords
Reviews

Created on 2020-05-06.00:14:26 by ced, last changed by ced.

Messages
msg57848 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-05-06.00:14:25
The party that is replaced on the invoice may not have been created before the numbered_at. So accessing it will raise an access error about record does not exist.
See https://discuss.tryton.org/t/after-a-duplicate-party-is-deleted-i-get-you-try-to-read-records-that-dont-exist-anymore-document-type-party-party/2544

A possible solution would be to change the numbered_at but we will lose information.
Another option would be to *hack* the party read to use the replaced record.
History
Date User Action Args
2020-05-06 00:14:26cedcreate