How to reproduce: - Have a databas with 2 companies (A and B) - Create and confirm a sale with company A - Switch to company B - Create a down payment invoice. Bug: When generating an invoice from a sale, the company of the invoice should always be the one from the sale. closes odoo/odoo#80523 Opw: 2631354 X-original-commit: a345d2f4a45179b1c3cecb5be983d3ef2435d0f8 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>