I'm developing a module that will extend Invoicing functionality: I would like to create custom form that will get specific fields from validated Odoo invoice (customer name, invoice lines etc.) and create a new form (similar functionality to creating invoices based on Sales Order)
How should I get the invoice lines for inserting them in the new form?