See the following scenario:
- An asset is purchased for 10.000€.
- The invoice is received and the corresponding asset is created in Tryton.
- Some days or weeks later a problem is found in the asset and a compensation from the supplier is negotiated. For example, the supplier sends a credit note worth 1.000€.
Currently, we can use the Update Asset wizard to indicate the new value of the asset. However, there’s no traceability that the amount has been updated because there’s this credit note.
So I propose to add a Many2One in the Update Asset wizard that allows the user to select an invoice line. If selected, the value field of the wizard will be automatically computed as “value + invoice line amount” (credit note lines are negative so we’d get the expected value).
When the user accepts the wizard, the credit note invoice line is added in a Many2Many (maybe One2Many) field that links invoice lines to assets.