The reference is not copied to the invoice move because the invoice needs the move to get the right number and then, we need the invoice number to compute the reference. So, this commit is required to copy the reference to the move after the invoice validation. /!\ DO NOT FORWARD-PORT! This behavior has been already fixed in 12.1 but with too much refactoring for a stable branch. closes odoo/odoo#29391