Create Vendor Invoice (Fusion) list,kanban code if records and len(records) == 1: action = records.action_create_invoice() else: raise UserError(_("Select exactly one document to convert into a vendor invoice."))