I want with a server action (Create Object) to create a new Object Invoice. In fields mapping I set model Invoice and
Destination - Type - Value
Partner - Formula - object.partner_id.id
Journal - Formula - object.journal_id.id
Account - Formula - object.account_id.id
Invoice Lines - Formula - object.invoice_line
I get error for Invoice Lines: KeyError: "Field '0' does not exist in object 'browse_record(account.invoice.line, 80)'" How can I set the value for the Invoice Lines?