https://github.com/odoo/odoo/commit/955091e707df1206ccda8314f1f182e2a37a8362 changed the way we want to generate invoices. This commit provides an helper method to be used in others modules to properly generate and send invoices following the send&print flow. task-id:3253019 closes odoo/odoo#119759 X-original-commit: 8dbf4c8390d9d0e4e2050b0ca318fcb2ec9dc3b0 Related: odoo/enterprise#40330 Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>